How can I check if there is a specific string in a .txt file?
#1

I need a player to input something and then it gets stored in a txt file but I don't want them to be able to type in the same thing twice. I already got everything set up except that, I read the Wiki page "File Functions" but I can't figure it out. Help is appreciated.
Reply
#2

Check the file where the player's inputtext is getting stored.
Then check if the player's inputtext matches one of the stored inputtext from the file, if yes return error.
Hope you get it.
Reply
#3

Use a database.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)