H
Hendrik Maryns
Hi,
I have a simple program that queries a ‘tree bank’. This is a text file
containing descriptions of linguistic trees. To make the querying
efficient, the data is proprocessed into a binary format. This is
stored somewhere on disk, and used by other parts of the program.
At this point, the binary data is stored in the place where the original
file is, with another file ending. This solution is unsatisfactory,
since the directory in question might not be writable. So I want to
store the preprocessed tree banks somewhere in a directory for my
program. Furthermore, I’d like to have access to them in a subsequent
execution of the program, since this preprocessing step is quite
intensive and there is no need to do it each time. Also, some other
file are generated during execution and they can be put there as well;
and I want to have a ‘cleanup’ option to delete them.
How is this handled generally in Java?
In Linux, one would make a directory .<programname> in the user’s home
directory and store data there. There is no such thing as a workspace
where this data can be stored, like Eclipse does.
I could of course ask the user to choose a directory at startup, but
that is sub-optimal.
What I am trying now is to create a temp dir and store stuff there, but
that does not persist between executions, since a new temp dir is
created each time.
TIA, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFH9iIAe+7xMGD3itQRAnhsAJ9SfoQpn+UX7MCicyXonyYcSzzbxACfW/Y+
y99PBqVrmI2UUgPchqkP7w0=
=Jusm
-----END PGP SIGNATURE-----
I have a simple program that queries a ‘tree bank’. This is a text file
containing descriptions of linguistic trees. To make the querying
efficient, the data is proprocessed into a binary format. This is
stored somewhere on disk, and used by other parts of the program.
At this point, the binary data is stored in the place where the original
file is, with another file ending. This solution is unsatisfactory,
since the directory in question might not be writable. So I want to
store the preprocessed tree banks somewhere in a directory for my
program. Furthermore, I’d like to have access to them in a subsequent
execution of the program, since this preprocessing step is quite
intensive and there is no need to do it each time. Also, some other
file are generated during execution and they can be put there as well;
and I want to have a ‘cleanup’ option to delete them.
How is this handled generally in Java?
In Linux, one would make a directory .<programname> in the user’s home
directory and store data there. There is no such thing as a workspace
where this data can be stored, like Eclipse does.
I could of course ask the user to choose a directory at startup, but
that is sub-optimal.
What I am trying now is to create a temp dir and store stuff there, but
that does not persist between executions, since a new temp dir is
created each time.
TIA, H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFH9iIAe+7xMGD3itQRAnhsAJ9SfoQpn+UX7MCicyXonyYcSzzbxACfW/Y+
y99PBqVrmI2UUgPchqkP7w0=
=Jusm
-----END PGP SIGNATURE-----