in reply to Re: Reading a file with 8kB long lines
in thread Reading a file with 8kB long lines
I'd like to hear your suggestions. The file is kind of C-code like (but it isn't - it's actually an SVF JTAG Boundary scan file) and looks like this
basically, I want to read in every line that does not begin with a "//" and ends with a ";". Should I just set $/ to ';' and then process the read in strings to drop everything between // and \n?// comments some code; more code; // more comments some very long long long code;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reading a file with 8kB long lines
by FunkyMonk (Bishop) on Jun 08, 2007 at 21:28 UTC | |
|
Re^3: Reading a file with 8kB long lines
by BrowserUk (Patriarch) on Jun 08, 2007 at 21:40 UTC |