SA-MP Forums Archive
Rename Files via Pawn - 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)
+--- Thread: Rename Files via Pawn (/showthread.php?tid=471167)



Rename Files via Pawn - AlonzoTorres - 21.10.2013

How can I rename a file via pawn? frename() did not work?


Re: Rename Files via Pawn - Konstantinos - 21.10.2013

Open file A and read everything it it. Store them in a string and then close the file.
Create a new file B and write everything to it from the string.
Delete file A.


Re: Rename Files via Pawn - AlonzoTorres - 21.10.2013

There gotta be a faster and better way?