NetLogo: reading data from input files with variable numbers of lines?

A method to read all lines from a file looks like.

Read one line let in1 file-read let in2 file-read ;and so one, at the end you will probably want to put these into some global variable set global-in1 fput in1 global-in1 file-close filename end This assumes that all rows have exactly the name number of data items, and you know what that number is. Otherwise just use file-read-line instead of file-read.

Thank you very much! I hadn't realised that I could use not file-at end. I do indeed have a set number of data items per row, so this looks perfect.

– Freya Harrison Feb 11 '10 at 13:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions