Re: Python Help Needed
Running your script with a file called "2of12inf.txt" seems to run ok, which would mean that the file your trying to load is either misspelled or not in the same directory as the script thats trying to load it. There's a few problems with your approach as well, strip() will only remove characters at the beginning and end of a string, not at any other point inbetween. To solve this you can iterate over each character in the string and add it to a list, and check if it matches a percent character, skipping it if it does. When you use infile.read() it reads the file and returns it as a string that you can process, but if you don't store that return in a variable it will be lost. You should then iterate over that returned string instead of infile.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector