winrunner 如何在输出文件中换行? \n \r 识别不了啊
file_printf(PATH, "%s","ad\tsf");print(),
这两个函数怎么换行的?
请教高手。 file_open("C:\\test.txt",FO_MODE_READ);
file_open("C:\\test2.txt",FO_MODE_WRITE);
i=0;
while(file_getline("C:\\test.txt",line)==0)
{
file_printf("C:\\test2.txt", line&"\r\n");
}
file_close("C:\\test.txt");
file_close("C:\\test2.txt");
if(file_compare("C:\\test.txt","C:\\test2.txt","save") == E_OK)
tl_step("compare", 0, "OK");
else
tl_step("compare", 1, "Fail.")
反过来
\r\n就可以了 涨见识,定一下:)
页:
[1]