SA-MP Forums Archive
Rename a text file? - 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: Rename a text file? (/showthread.php?tid=277602)



Rename a text file? - Gomma - 18.08.2011

I just wanted to use YSF but noticed that it is not compatible with 0.3c (silly me).
So like the topic name may let you guess: I want to rename some textfiles, in my case it are the accounts.

The accounts have this format:
Code:
PlayerName.ini
Is there a way I can rename them or is there somewhere a file functions plugin that allows you to do that?


Edit:

I was using y_files out of the YSI package, but oviously it is not working.


Re: Rename a text file? - dice7 - 18.08.2011

Create a new file with the desired name, read the original file and write the info into the new one and then delete the original