Re: [Tutor] Question about reading from a file.

2012-08-07 Thread Mark Lawrence
On 07/08/2012 13:37, Ramchandra Apte wrote: Imagine a book. .read(num) reads a page of the book Now if you call again it goes to the next page. Please don't top post. This is now the fourth time you've been asked. -- Cheers. Mark Lawrence. ___

Re: [Tutor] Question about reading from a file.

2012-08-07 Thread Ramchandra Apte
> > Imagine a book. > .read(num) reads a page of the book Now if you call again it goes to the next page. > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > ___ Tutor m

Re: [Tutor] Question about reading from a file.

2012-08-07 Thread Joel Goldstick
On Tue, Aug 7, 2012 at 5:12 AM, Mark Lawrence wrote: > On 04/08/2012 22:51, Brad Dutton wrote: >> >> I recently discovered how to read from a file but I've having some trouble >> with it. I made a short example program that goes like this: >> >> >> 1. fob = open('c:/python27/a.txt', 'r') >>

Re: [Tutor] Question about reading from a file.

2012-08-07 Thread Mark Lawrence
On 04/08/2012 22:51, Brad Dutton wrote: I recently discovered how to read from a file but I've having some trouble with it. I made a short example program that goes like this: 1. fob = open('c:/python27/a.txt', 'r') 2. 3. print fob.read() 4. print fob.read() When it runs it ret

Re: [Tutor] Question about reading from a file.

2012-08-07 Thread Peter Otten
Brad Dutton wrote: > I recently discovered how to read from a file but I've having some trouble > with it. I made a short example program that goes like this: > > >1. fob = open('c:/python27/a.txt', 'r') >2. >3. print fob.read() >4. print fob.read() > > When it runs it returns t

[Tutor] Question about reading from a file.

2012-08-07 Thread Brad Dutton
I recently discovered how to read from a file but I've having some trouble with it. I made a short example program that goes like this: 1. fob = open('c:/python27/a.txt', 'r') 2. 3. print fob.read() 4. print fob.read() When it runs it returns this: 1. Hey now brown cow 2. It