You can use the Scanner class to read the file.
And the PrintWriter class to write to a file.
Please explain in more detail what you want to do with a hashmap.
Type: Posts; User: Norm
You can use the Scanner class to read the file.
And the PrintWriter class to write to a file.
Please explain in more detail what you want to do with a hashmap.
The StringTokenizer class does NOT read data from files. You need to use a class that reads from a file.
For student exercises, you could use the Scanner class.