[EMAIL PROTECTED] wrote:
Hello,
I am new to Python and have one simple question to which I cannot find
a satisfactory solution.
I want to read text line-by-line from a text file, but want to ignore
only the first line. I know how to do it in Java (Java has been my
primary language for the last
Ken Starks [EMAIL PROTECTED] writes:
LineList=open(filename,'r').readlines()[1,]
You don't want to do that if the file is very large. Also,
you meant [1:] rather than [1,]
--
http://mail.python.org/mailman/listinfo/python-list
Benjamin Kaplan wrote:
On Thu, Aug 28, 2008 at 12:11 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello,
I am new to Python and have one simple question to which I cannot find
a satisfactory solution.
I want to read text line-by-line from a text file, but want to ignore
only the first
On Thu, 28 Aug 2008 10:16:45 -0700, norseman wrote:
Benjamin Kaplan wrote:
On Thu, Aug 28, 2008 at 12:11 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello,
I am new to Python and have one simple question to which I cannot find
a satisfactory solution.
I want to read text
On Thu, 28 Aug 2008 15:11:39 -0700, Dennis Lee Bieber wrote:
On 28 Aug 2008 19:32:45 GMT, Marc 'BlackJack' Rintsch [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
On Thu, 28 Aug 2008 10:16:45 -0700, norseman wrote:
import os
file = open(filename, 'r')
for line in
Hello,
I am new to Python and have one simple question to which I cannot find
a satisfactory solution.
I want to read text line-by-line from a text file, but want to ignore
only the first line. I know how to do it in Java (Java has been my
primary language for the last couple of years) and
On Thu, Aug 28, 2008 at 12:11 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello,
I am new to Python and have one simple question to which I cannot find
a satisfactory solution.
I want to read text line-by-line from a text file, but want to ignore
only the first line. I know how to do it