Re: variable size record length file parsing
- From: "Jeff Johnson" <i.get@xxxxxxxxxxx>
- Date: Mon, 14 May 2007 16:57:35 -0400
"Matt Williamson" <ih8spam@xxxxxxxxxxx> wrote in message
news:uZqwjHmlHHA.3704@xxxxxxxxxxxxxxxxxxxxxxx
I need help parsing a file that will have variable sized record lengths.
It depends on the format of the file and how the records are separated.
Each line is between 280-320 chars long and ends with an "X" then a CR/LF.
Here is an example of a few lines from the file:
You pretty much only have two options: using Line Input and working with a
line at a time or reading the file into a byte array (completely or in
chunks) and searching for CRLF yourself, which is pretty much what Line
Input is doing.
Users love delimited, non-fixed-width files because they're easy to work
with for them. As a programmer, I despise them. Fixed-width files rock.
.
- Follow-Ups:
- Re: variable size record length file parsing
- From: Matt Williamson
- Re: variable size record length file parsing
- References:
- variable size record length file parsing
- From: Matt Williamson
- Re: variable size record length file parsing
- From: Mike Williams
- Re: variable size record length file parsing
- From: Matt Williamson
- variable size record length file parsing
- Prev by Date: Re: Exiting from a Do Loop
- Next by Date: Re: Exiting from a Do Loop
- Previous by thread: Re: variable size record length file parsing
- Next by thread: Re: variable size record length file parsing
- Index(es):
Relevant Pages
|