OK, sooner or later everyone needs to save some user input data, like username/password for some server.
What are the techniques for saving the data?
Let's say I want to write a program similar to filezilla ftp client. The user creates a new ftp connection and wants to save host/port/username/password so that next time he does not have to type it manually.
How would I go about saving this data? A text file? a database entry somewhere? Do I have to specify the location (directory/file name) or does java automatically create some file for these?