Notifications
Clear all
[Closed] Check number of lines in a text file?
May 16, 2009 8: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.
2 Replies
May 16, 2009 8:33 pm
See: http://forums.cgsociety.org/showthread.php?f=98&t=675886 – “Check number of lines in a text file?”