There are several reasons why you might need the ability to write to a file during runtime. For example, maybe you'd like to save your results as a .jtl file. Luckily, this is very easy to do with Flood.
​
All you have to do is modify your script to create the .jtl file by adding a listener such as the Simple Data Writer and using the absolute path /data/flood/results/ like this:​