How to get all of fread to one string?
#6

This is one possibility how to count the lines quite simple:

Код:
fopen(..);

new LineCount = 0;
while(fread, File, string))
{
LineCount ++;
}

fclose(File); // Close it before removing!

if(LineCount == 0) 
{
// No lines found (empty file), remove the file..
fremove(..);
}
Reply


Messages In This Thread
How to get all of fread to one string? - by Riwerry - 27.01.2014, 12:43
AW: How to get all of fread to one string? - by NaS - 27.01.2014, 12:47
Re: How to get all of fread to one string? - by Riwerry - 27.01.2014, 12:48
AW: How to get all of fread to one string? - by NaS - 27.01.2014, 12:54
Re: How to get all of fread to one string? - by Riwerry - 27.01.2014, 12:56
AW: How to get all of fread to one string? - by NaS - 27.01.2014, 12:59
Re: How to get all of fread to one string? - by Riwerry - 27.01.2014, 13:01
Re: How to get all of fread to one string? - by [ABK]Antonio - 27.01.2014, 13:04
Re: How to get all of fread to one string? - by Riwerry - 27.01.2014, 13:08
AW: How to get all of fread to one string? - by NaS - 27.01.2014, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)