12.09.2011, 09:41
Hey guys, I have a problem.
Not writing to file.
Here is the code
But file "ffread.txt" is empty.
Thanks for help
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]);
Thanks for help

