def readFile(filename):
filename= open("filename.txt", 'r')
readIt= filename.read(4)
return readIt
When I call the above function it reads the four charcters from the textfile. But I want it to read through the whole file and group the first, second, third, and fourth together, fifth, sixth, seventh, eighth and so forth
I tried to use "with open" but I'm stuck on this. Pretty new to this. Input appreciated