- Home /
GUI InputHolder checking text from file
Hello, I have a GUI InputHolder , where a player will put a word, and I would like to have a script which will search for that word in a txt file , if it'll find it : int score += 1 , else score -= 1.
// Example #2
// Read each line of the file into a string array. Each element
// of the array is one line of the file.
string[] lines = System.IO.File.ReadAllLines(@"C:\Users\Public\TestFolder\WriteLines2.txt");
I think I can use this , but don't know exacly how.
Thank you , and sorry for my english skills.
Comment