Help saving data?
Fragment of a discussion from Talk:Saving Gun Data
Jump to navigation
Jump to search
You can use AdvancedRobot.getDataDirectory() to get the path you're allowed to write in. Alternatively, you can use AdavancedRobot.getDataFile(String filename)
To enforce the write quota, Robocode also requires that you write to the file using RobocodeFileOutputStream or RobocodeFileWriter (instead of FileOutputStream or OutputStreamWriter)
(and is mentioned on Saving Gun Data of course you can adjust the write quota)
Straw the write quota has to be 200 kb or below in order to roborumble P.S what data is saved P.P.S what K-D-tree are you using