Create a List that contain each Line of a File [duplicate] August 3, 2023 by Tarik It’s a lot easier than that: List = open("filename.txt").readlines() This returns a list of each line in the file.