I am making a program where i nead to read from a text file and based on whats in the text file, change how te program runs.
Heres an example, lets say i have a format like whats below in the text file:
#tells the program to change the way it handles the graphics
#tells the program how fast to run the game
this is just an example of what the file will look like, the # means s just a comment to be ignored by the program
; means the end of the task
and the text behind the : means a command and the text infront means what command tells the program to do
i have been trying for a while now to get my program to read the file correctly but i just can't figure it out with how to get the program to ignore # and to stop reading a line at ; and getting it to sucessfully read both numbers and letters
does anyone have any suggestions on how to get this to work?