I want to have a file for one of my python programs, that looks something like this:
<WINDOW> #Window size 640 480 <WINDOW TITLE> App Platform Test <ICON> icon.png
I have a function that reads each line of, and uses the data to make a window. What happens is, if the program reads a line of text from this file (using 'file.readline()'), which is, say, <WINDOW TITLE>, it will read the next line and that will be set as the title.
The problem is with the window size. 'readline()' returns with a newline (\n) thing on the end, and it is also in single qoutes. I can't find a function to remove these so I can use the line as an int.