Size of text file

Started by
1 comment, last by Zombie 23 years, 2 months ago
How can be count the number of rows in a .txt file? I''m copying text to array, each row taking up one array slot. But I don''t know how long the loop should go on.
Advertisement
You stop when you hit the end of file or run out of space to store the data.
Keys to success: Ability, ambition and opportunity.
You can either do EOF checks with C++ funtions or simply have a string that signifies it''s the end. Have it look for something like "no more" and if it finds it then it stops ready entries

Ben
http://therabbithole.redback.inficad.com





This topic is closed to new replies.

Advertisement