Saving data to a file and retrieving it w.r.t. user id
<p>I'm developing an application using Java Swing. I want to save the details entered by the user in a file (and not in a database) in such a way that I should later be able to retrieve all data related to a specific id. How should I do this?</p>

<p>The user details I need are: ID, Name, Address.</p>
