Re: find integers in f.readline()

2010-04-30 Thread MRAB
elsa wrote: Hi people, I'm having a problem getting the info I need out of a file. I've opened the file with f=open('myFile','r'). Next, I take out the first line with line=f.readline() line looks like this: '83927 300023_25_5_09_FL 9086 9134 F3LQ2BE01A

Re: find integers in f.readline()

2010-04-29 Thread Tommy Grav
On Apr 29, 2010, at 10:22 PM, elsa wrote: > Hi people, > > I'm having a problem getting the info I need out of a file. > > I've opened the file with f=open('myFile','r'). > > Next, I take out the first line with line=f.readline() > >

Re: find integers in f.readline()

2010-04-29 Thread Alf P. Steinbach
On 30.04.2010 04:22, * elsa: Hi people, I'm having a problem getting the info I need out of a file. I've opened the file with f=open('myFile','r'). Next, I take out the first line with line=f.readline() line looks like this: '83927 300023_25_5_09_FL

find integers in f.readline()

2010-04-29 Thread elsa
Hi people, I'm having a problem getting the info I need out of a file. I've opened the file with f=open('myFile','r'). Next, I take out the first line with line=f.readline() line looks like this: '83927 300023_25_5_09_FL 9086 9134 F3LQ2BE01AQLXF 1 49 + 80

f.readline(), for line in f

2007-05-23 Thread 7stud
Hi, 1) Does this make any sense: """ Thus, the loop: for line in f: iterates on each line of the file. Due to buffering issues, interrupting such a loop prematurely(e.g. with break), or calling f.next() instead of f.readline(), leaves the files position set to an

Re: F.readline

2005-05-05 Thread Alex N
Erik Max Francis wrote: > Robert Kern wrote: > > > There is no such command built in. You will have to build it yourself > > out of the components that are available. > > linecache is probably what he's looking for. > > -- > Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ > Sa

Re: F.readline

2005-05-05 Thread Robert Kern
Erik Max Francis wrote: > Robert Kern wrote: > >>There is no such command built in. You will have to build it yourself >>out of the components that are available. > > linecache is probably what he's looking for. Well, I'll be darned, indeed it is. Hooray for the time machine. -- Robert Kern [

Re: F.readline

2005-05-05 Thread Erik Max Francis
Robert Kern wrote: > There is no such command built in. You will have to build it yourself > out of the components that are available. linecache is probably what he's looking for. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jose, CA, USA && 37 20 N 121 53 W && A

Re: F.readline

2005-05-05 Thread Robert Kern
Alex Nordhus wrote: > Having some trouble with f.readline and python. Specifically looking for > the command to tell it to go and read a specific line. There is no such command built in. You will have to build it yourself out of the components that are available. -- Robert Kern

F.readline

2005-05-05 Thread Alex Nordhus
Having some trouble with f.readline and python. Specifically looking for the command to tell it to go and read a specific line. Alex Nordhus Keystroke clipboard Copy and Paste ! http://www.pasteaway.com -- http://mail.python.org/mailman/listinfo/python-list