and I want to print them to a file and s2 must be printed from a new line.
How can I do it using file_printf() function?
The most actual question is about "...from a new line". In С language we can use "\n" and what about TSL?
Originally posted by awdavis: use "\r\n" for WinRunner to actually recognize the new line.
<font size="2" face="Verdana, Arial, Helvetica">You do need \r\n but the actual problem isn't with WinRunner - it's with notepad. If you open a text file with just \n in wordpad, or using the DOS edit command, the newlines will be recognized. Likewise, if you write a C program which uses fprintf to write just \n characters to a text file, the newlines won't be recognized by notepad. I don't know why Microsoft decided not to recognize \n as a newline character when they wrote notepad - it's the only text editor which behaves this way. I guess they had to be different - It's kind of like the way British cars have a positive ground - it shows a certain amount of cockiness not to follow the same convention as the rest of the world.