Microsoft
Software
Hardware
Network
Question : skip the header when reading a file
Hi,
just a very short question
for line in open(file):
line = line.strip().split()
print line
But it's reading also the header line. How can i skip it in an easy way without using if
Answer : skip the header when reading a file
Oops, missed without if. Ok:
1: 2: 3: 4:
f = open(name) f.next() for line in f: print line.strip().split()
Open in New Window
Select All
Random Solutions
No Sharepoint alerts!
Microsoft Sharepoint Email
Trim mpg file without loss?
Close all Forms in VB editor window (or activate particular module)
Intranet
Problem printing in Okidata Microdyne 420 Printer using Red Hat Linux 4.5, Fonts changed.
Oracle query
steps for inplace upgrade
URGENT:: Looking for MSSQL - reference manual
Outlook 2007 Printing Error