Robots in Robocode are constrained in what they can access on purpose.
But they do have small storage of 200.000 bytes for writing and reading data. This is used for e.g. robots based on genetic programming where the genes are stored as a string.
But you might be able to use this storage for your purpose as well.
Robots store their data into a directory named MyRobot.data if the class name of the robot is MyRobot in the 'robots' directory.
Try to run the sample bot sample.SittingDuck and check the /robots/sample/SittingDuck.data directory.
And you can write to the file using RobocodeFileOutputStream or RobocodeFileWriter, and read from it using regular input streams, e.g. FileReader (have a look at SittingDuck sample robot).
With this knowledge, it should be possible to write into the data directory with a file from the RobocodeEngine which the robots can read in.
- Flemming N. Larsen