The program should use a loop to read values from the file until there are no more values in the file.

Each value also has a unique ID.

If the file is a properties file, what are the "names" for all the values in the file? You will need a complete list of all the names to be able to access all the values. The Properties class has methods that will get help you get the list.