Size of text file
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.
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
Ben
http://therabbithole.redback.inficad.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement