S
SamSam
Guest
Hi, I am trying to figure out the theme of the GAAAAAAAAME JAAAAAAAM !
I am making a small software wich reads a word list, and writes the 8 characters words in another file. Both files are included .txt.
The problem is I can't get the string to write itself into resultList.txt. I have debug checked everything else so the error is in there :
Thank you for your help !
I am making a small software wich reads a word list, and writes the 8 characters words in another file. Both files are included .txt.
Code:
analysedWord = "0";
fileRead = file_text_open_read("sourceList.txt");
{ do {
analysedWord = file_text_read_string(fileRead);
file_text_readln(fileRead);
if (string_length(analysedWord) == 8) {
fileWrite = file_text_open_append("resultList.txt");
file_text_write_string(fileWrite, analysedWord);
file_text_writeln(fileWrite);
file_text_close(fileWrite);
}
} until(file_text_eof(fileRead)) }
file_text_close(fileRead);
Code:
fileWrite = file_text_open_append("resultList.txt");
file_text_write_string(fileWrite, analysedWord);
file_text_writeln(fileWrite);
file_text_close(fileWrite);