I am trying to write a txt file on the Hard disk.

I use this program:

FILE * pFile;
pFile = fopen ("myfile.txt" , "w");
fprintf (pFile, " %s This goes in one line \rThis goes on the other line");
fclose (pFile);

RESULT EXPECTED:
This goes in one line
This goes on the other line.

Naturally it generates a txt file named  MYFILE.TXT.

When I open the program using WORDPAD it works as expected.

But When I use the  NOTEPAD this not work well.

What I should do to correct the problem the open the correct lines in the
NOTEPAD?





To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=:HM/A=2434971/rand=118112465


Yahoo! Groups Links

Reply via email to