I love to learn ....

Apr
19
revised Trying to find an equivalient to wx.Timer : Python
typos
Apr
19
accepted Trying to find an equivalient to wx.Timer : Python
Apr
19
asked Trying to find an equivalient to wx.Timer : Python
Mar
26
awarded Student
Mar
24
awarded Autobiographer
Mar
24
asked How to assign samples to key groups with Akai S2800i
Mar
6
awarded Popular Question
Jan
14
awarded Popular Question
Dec
28
awarded Notable Question
Dec
22
accepted How to use Python to read a range of lines in a file
Dec
22
comment How to use Python to read a range of lines in a file
@gkusner the only thing I need to figure out now is that it appears to disregard the nested if statement (if '8041' ...). It prints all orders, regardless the '8041' condition. But I can live with that.
Dec
22
comment How to use Python to read a range of lines in a file
@gkusner works like a charm, Not sure why I got stuck, but I understand your process (very straight forward)
Dec
22
comment How to use Python to read a range of lines in a file
Here is what a returned Jay, still trying to troubleshoot: -> 004 60981 Traceback (most recent call last): File "F:\Python\WinPython-32bit-2.7.10.2\python-2.7.10\getOrders_RXF.py", line 50, in <module> line = rfile.readline() ValueError: Mixing iteration and read methods would lose data
Dec
22
comment How to use Python to read a range of lines in a file
@gkusner for some reason it is only printing line 819. Also, I have this line above the code you posted: for rxf in file filelist:
Dec
22
comment How to use Python to read a range of lines in a file
Not sequential, but incrementally larger up until 819.
Dec
22
comment How to use Python to read a range of lines in a file
@aabilio from the sample text file, if line 004 == 'a certain number', get all lines up to line 819. Then, if the next 004 == 'a certain number' get subsequent lines as well, and so fourth.
Dec
22
revised How to use Python to read a range of lines in a file
added 1 character in body
Dec
22
asked How to use Python to read a range of lines in a file
Dec
22
awarded Yearling
Dec
22
awarded Good Question
1 2 3 4 5