Help saving data?
Fragment of a discussion from Talk:Saving Gun Data
← Thread:Talk:Saving Gun Data/Help saving data?/reply
Jump to navigation
Jump to search
← Thread:Talk:Saving Gun Data/Help saving data?/reply
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, as is mentioned on Saving Gun Data of course you can adjust the write quota)
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
Return to Thread:Talk:Saving Gun Data/Help saving data?/reply (3).