I need some help using files.
I want to read a particular line in a file, copy it as a string, then delete the line.
Can someone show me how to do this please?

EDIT:
I just thought of something.
Maybe I can use either one of these codes:

Code:
var i;
		for (i=0; i<3; i++)
		{
			Line = file_str_read(myFile,fileString);
		}
		
		var i = 0;
		while (i < 3)
		{
			i += 1;
			Line = file_str_read(myFile,fileString);
			if (i == 3) {file_close(myFile);}
			wait(1);
		}



I try them and see.

Last edited by JGGamer; 01/13/10 22:05.