I just want to check if a word is in a txt file. This code gives me an Invalid Pointer... It should just check valid.txt for the word "did" and if it is found to nothing and if not write it in and go to google
Code:
var survey_var = file_open_write("valid.txt");
STRING* survey_string = "";
function survey()
{
file_str_read(survey_var,survey_string);
if(!str_cmpi(survey_string,"did"))
{
file_str_write(survey_var,"did");
exec("www.google.de",NULL);
}
file_close(survey_var);
}
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011