OK, where I'm going is this. I want my java chess applet to be be able to load and save some kind of chess games.
lets first of all consider what might be happening with the following page, which uses a java applet to present a chess game. It's a very popular site for online viewing of games, and they have an extensive database.
http://www.chessgames.com/perl/chessgame?gid=1282672
here is a key block of code from this page.
Code:
<APPLET
codebase="/java/cvd/"
archive="Viewer-Deluxe.jar"
code="ChessBoard.class"
align="baseline" width="631" height="560">
<PARAM name=LightSquares value="FFCC99">
<PARAM name=DarkSquares value="CC9966">
<PARAM name=Background value="EEEEEE">
<PARAM name=ImagesFolder value="images">
<PARAM name=PuzzleMode value="off">
<PARAM name=MayScript value="on">
<PARAM name=PgnGameFile value="/perl/nph-chesspgn.pgn?gid=1282672&inode=5252598">
</APPLET>
it would appear that the key line which refers to database is...
<PARAM name=PgnGameFile value="/perl/nph-chesspgn.pgn?gid=1282672&inode=5252598">
pgn is a standard format for storing chess games. a single pgn file can hold just one, or many games. The pgn std is a flat text file with various kinds of delimiters.
given the large number of games these guys have stored, it can't possibly all be a flat text file.
so what conclusions can we draw from the above code block?