Thread: Reading a file
View Single Post
Old 04-29-2006, 03:35 AM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I assume you're using python? Python probably has a regular expression library, so you could use a regular expression like '^-+$' to match lines that only contain -'s . Or you could decide that every --- line will have exactly 12 dashes and you could use a string comparison function to see if the value of the line is eq to '------------' .
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote