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
#2

Donґt exist ? I used this plugin https://sampforum.blast.hk/showthread.php?tid=252918
Reply
#3

Ok, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)