0

I'm trying to read in a file in Python. I have:

file_object = open("CourseEnrollment.txt", "r")
print file.read("CourseEnrollment.txt", 5)

I know I have the text file in the right place, but when I try this it says it's receiving a string instead of a file. How do I change this?

melpomene
  • 84,125
  • 8
  • 85
  • 148

0 Answers0