|
3 registered members (AndrewAMD, Quad, TipmyPip),
2,079
guests, and 7
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: How to make a Linefeed at a written Text File?
[Re: Henning]
#300290
12/01/09 09:32
12/01/09 09:32
|
Joined: Apr 2009
Posts: 248 Philippines
seecah
Member
|
Member
Joined: Apr 2009
Posts: 248
Philippines
|
Did you open the text file through notepad.exe.. If yes then I think that's normal that you just can see a rectangle for which I don't know what the reason is. I've tried that also, try to download notepad++ and there you can see the exact contents of the file.
Indeed "\n" works but it's just that notepad.exe can't interpret it perhaps..
"\n" is just enough to write a linefeed..
Hope that helps..
Can't is not an option™
|
|
|
Re: How to make a Linefeed at a written Text File?
[Re: seecah]
#300292
12/01/09 09:48
12/01/09 09:48
|
mercuryus
Unregistered
|
mercuryus
Unregistered
|
file_asc_write(fhandle,10) lf file_asc_write(fhandle,13) cr
(maybe 13->10)
|
|
|
Re: How to make a Linefeed at a written Text File?
[Re: ]
#300314
12/01/09 13:58
12/01/09 13:58
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
Expert
|
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
bit of a hack, but what i used to do is simply:
var filehandle = file_open_write ("myfile.txt");
file_str_write(filehandle,"
"); // Yes, this is indeed on a new line...
file_close (filehandle);
simple as that  hahahaaa regards,
|
|
|
|