This is a really simple way to maintain an options file for your application in case you don't wanna mess with registry entries, along with added support for comments inside the file. The file will be created at the same location with the executable. In addition, if an error is found or you deleted the file, the program takes appropriate action.
As for the way this will work, it's actually line-by-line. Example file:
# Use '#' to create comments. # Use '#' as a line separator as well. # Not everything is an acceptable value. # helloWorld=true