I'm new to Java. Give me detailed help or links! Thanks!

Problem:
I have to store data into a file. The data in the file should be stored like you would store data in an ini-file. In VB you can do this by calling:
BOOL WriteProfileString( LPCTSTR lpszSection, LPCTSTR lpszEntry, LPCTSTR lpszValue );
and retrieving data by calling:
CString GetProfileString( LPCTSTR lpszSection, LPCTSTR lpszEntry, LPCTSTR lpszDefault = NULL );

Is there a class or method that does the same thing??

Thanks!

WVTR