Does anyone know how to write to and read from a text file in Robocode .Net??
First of all. Robots are not allowed to do IO like writing files to the file
system - at least not directly. This is due to security reasons. However,
Robocode provides a small API for reading and writing up to 200.000 bytes into
a data file dedicated to the robot.
Robot.GetDataDirectory() gets the data directory for your robot:
Robot.GetDataFile() return a file that you can write to and read from:
I hope this helps?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.