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
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()
>
>
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
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
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
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
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
[
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
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
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
10 matches
Mail list logo