Notifications
Clear all

[Closed] Check number of lines in a text file?

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

See: http://forums.cgsociety.org/showthread.php?f=98&t=675886 – “Check number of lines in a text file?”

Thank you! Now how did I miss that? O_o