bob gailer wrote:
Or even simplref = open('file.txt',r).readlines() print [f[x+1] for x, line in enumerate(f) if line.rstrip() == "3"][0]
-- Bob Gailer 919-636-4239 Chapel Hill, NC _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
