How do I read every line of a file in Python and store each line as an element in an array?
I want to read the file line by line and each line is appended to the end of the array. I could not find how to do this anywhere and I couldn't find how to create an array of strings in Python.