Notifications
Clear all

[Closed] read text row amount

is there a quick way of extracting how many lines of row a txt file has without doing a “for,while loop” ?

if not there is always that and creating a counter

2 Replies

I don’t believe so – maxscript doesn’t have a very powerful text parser. Everything I’ve ever done parses the file into an area until EoF…

 lo1

((dotnetclass “System.IO.File”).readAllLines yourFileName).count