SA-MP Forums Archive
New line? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: New line? (/showthread.php?tid=197720)



New line? - Th3Angel - 10.12.2010

Does anyone know how to make a new line while writing to a file using fwrite?
I've tried using \n, but it doesn't work.


Re: New line? - randomkid88 - 10.12.2010

Use \r and \n.
pawn Код:
fwrite(file, "Hello \r\n");



Re: New line? - Th3Angel - 10.12.2010

Thanks!
[Too Short]