How to get number of lines in text file?
#2

oh, nevermind. I've just turned my brains on and think and that what I get, it works fine for me. Hope it's will be helpful for you.
Код:
new string[64], count = 0;
new File:file = fopen("houses.txt", io_read);
while(fread(file, string)) {
	count++;
}
fclose(file);
Reply


Messages In This Thread
How to get number of lines in text file? - by NiXeL - 03.03.2011, 16:22
Re: How to get number of lines in text file? - by NiXeL - 03.03.2011, 16:38
Re: How to get number of lines in text file? - by jamesbond007 - 03.03.2011, 16:46
Re: How to get number of lines in text file? - by Mean - 03.03.2011, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)