At Wednesday 2004-12-01 19:22, you wrote:

>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");

   \n not \r

>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 Links
>
>
>
>

Victor A. Wagner Jr.      http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"



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=183311685


Yahoo! Groups Links

Reply via email to