Save File Contents to Variable in Python3.3 [migrated]
- by Neo_Programmer
I have a Python3.3 script that seems to not work. The script will search for an XML pattern and then print the results to the screen. I am using Ubuntu 12.10 (AMD64) and python3.3. I prefer to use regex with XML, so please disregard this unconventional form of programming.
#!/usr/bin/python3.3
import io, re
openfile =…