Reading and writing a file.
#1

Is there a way to read and write in the file WHILE reading it?

My players have to register using a nickname and during the registration process they have to fill in the name of their character. Since that name is not connected to their playing name, I have to store all the names in use in a single file. Now, during this registration process I want to check whether or not the name chosen is in use.

How can I accomplish that?
I've tried using this tutorial about File Functions:
https://sampwiki.blast.hk/wiki/File_Functions

But I can't get it to work.

Does anyone have a useful tutorial or perhaps an example code? If this is even possible, that is.

Thanks in advance.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)