Notifications
Clear all

[Closed] FileStream problems

Hi,

I want for my script to create Project Folders like in the structure of some .txt file. Very simple! But I’m having some problems with fileStream. Once the file ends I get the error

-- Runtime error: File not open. No I/O allowed: "C:\PathToSomeTxtFile.txt"

Which is not that a big deal, because I don’t use any data in this loop:

	fn readProjectStruct Arr fileStr = (
		while (eof dirStr == false) do (
			item = readLine dirStr
			append Arr item
		)
	)

The problem is that it errors out on the end of the file. I’m not sure why this is happening. I mean it should exit the loop

Which sucks even more I need to restart 3dsMax to remove the error