Help with FileFunctions
#1

Hey guys, I have a problem.
Not writing to file.
Here is the code

Код:
	print("---------------- FF-WRITE ------------------");
	Old[1] = GetTickCount();
	new File:file2 = fileOpen("ffread.txt",io_Write);
	for(new i; i < 100000;i++){
	fileWrite(file2, "TEST\r\n");
	}
	fileClose(file2);
	New[1] = GetTickCount();
	printf("FF-WRITE  %d",New[1]-Old[1]);
	print("---------------- FF-READ ------------------");
	Old[1] = GetTickCount();
	file2 = fileOpen("ffread.txt",io_Read);
	while(fileRead(file2,str)){

	}
	fileClose(file2);
	New[1] = GetTickCount();
	printf("FF-READ  %d",New[1]-Old[1]);
But file "ffread.txt" is empty.

Thanks for help
Reply


Messages In This Thread
Help with FileFunctions - by Patchwerk - 12.09.2011, 09:41
Re: Help with FileFunctions - by Patchwerk - 12.09.2011, 10:31
Re: Help with FileFunctions - by Patchwerk - 12.09.2011, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)