2016-11-09 35 views

回答

0

示例代碼可被用來從文件中刪除空行:

*** Test Case *** 
first test 
${contents}=Get File data.txt 
Create File data2.txt @{lines}=Split to lines ${contents} 
:FOR ${line} IN @{lines} 
\ ${length}= GetLength ${line} 
\ Run Keyword if ${length} != 0\ Append To File data2.txt ${line}\n