PDA

View Full Version : Check number of lines in a text file?


Malkalypse
05-16-2009, 08:33 PM
I'm still pretty new to working with filestreams, so I'm still figuring some of the basics out. What is the best way to go about checking for the number of lines in a text file? I want to loop through each of the lines in a given file, i.e.

for i = 1 to numberOfLines do ()

but I can't figure out how to define that "numberOfLines" variable. I wasn't able to find anything in the MaxScript help for this, but maybe I'm missing something.

ZeBoxx2
05-16-2009, 09:30 PM
See: http://forums.cgsociety.org/showthread.php?f=98&t=675886 - "Check number of lines in a text file?"

Malkalypse
05-16-2009, 09:47 PM
Thank you! Now how did I miss that? O_o

CGTalk Moderation
05-16-2009, 09:47 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.