problem with FileOpen function - returns error at compile

 
int handle;
handle=FileOpen(SAR1.txt,FILE_WRITE,';');
if(handle<1)
{
Print("File was not found: ", GetLastError());
return(false);

}

.

this returns error 'SAR1.txt' - variable not defined

How do I define this text file name as a variable and why do I have to do this ?

 

put SAR1.txt in quote marks as the compiler is interpreting SAR1 as an object with sub object txt.

 
Ickyrus:

put SAR1.txt in quote marks as the compiler is interpreting SAR1 as an object with sub object txt.


oh right, thankyou