JackD
JackD

Reputation: 49

Netlogo, changing exported file name

**I am trying to write information to a file for some experiments. Is it possible to change the file name for each experiment without having to change the code each time?

I was trying to use a slider to change the file name but had no luck. **

Upvotes: 1

Views: 136

Answers (1)

Charles
Charles

Reputation: 4168

you can try

file-open (word "mytrack" fileName ".txt")

word strings together its arguments and converts numbers to strings in the process.

Upvotes: 3

Related Questions