Count strings in a file
#2

How're you separating strings? If you're separating them one on each line, maybe you can just count the lines

HTML Code:
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
Count strings in a file - by KehmoSabeh - 23.01.2020, 18:53
Re: Count strings in a file - by Markski - 23.01.2020, 22:32
Re: Count strings in a file - by KehmoSabeh - 25.01.2020, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)