So. I am new to this site, and don't really know the most efficient ways of finding the information I'm looking for, so I'll just post and work with what I hear. Here goes:
I have designed a college basketball simulation game (and am currently working on an NBA version.) This game is not the program in question. Instead, I have written a program to help me with the game, specifically by handling the game simulating (which is a pain to do by hand.) Recruiting, stat compiling and standings adjustments are all done in excel.
The game-simulation program works fine, though is fairly rudimentary. It's written in Java because I needed a language that ran easily on macs. All the team and player variables are defined in the program itself - the interface is simply "give me the numbers of the two teams" (which of course correlate to the appropriate subscripts) "and I'll sim the game."
Here is what I want. I want some way to have a file/database that the game continuously updates. To have every team's players/stats/scores/wins/whatever in this file, have it updated as the season progresses, and then to write the results back to this file. If I can accomplish this (which shouldn't be that hard, in theory) my life would get much better.
My first instinct was to create a text file as the basic data file, and then read it and write it back later, which is what I would have done in Pascal. But I ran into serious issues trying to code that - getting both integers and strings out of the file alone created issues.
I am a fairly novice programmer with Java, and don't really know where to go with this. I don't know if I'm simply missing some simple file R/W commands, or if I should be looking for some kind of database functionality.
I would appreciate any feedback you guys can offer.