I want to import an Ascii file, which consists of only 1 line, but it is pretty large (>32k).
Every 1000 chars represent a 'record'. So i'd like
to be able to read 1000 chars at a time.
The import statement (using version 8, not 9) can only read one entire LINE at a time (we're on an NT system) .
Does anyone know if there's an easy solution for this ?
"Robert Veenstra" wrote:
>>I want to import an Ascii file, which consists of only
>1 line, but it is pretty large (>32k).>Every 1000 chars represent a 'record'. So i'd like
>to be able to read 1000 chars at a time.
>The import statement (using version 8, not 9) can only>read one entire LINE at a time (we're on an NT system)
>.>Does anyone know if there's an easy solution for this
>?>
>
The simplest way is to use either Quick Basic or 'C' to randomly read the file 1000 bytes at a time, and write out an ASCII file that PROGRESS can handle (multiple records).
"Charlie Beveridge" wrote:
>
>"Robert Veenstra"
>wrote:
>>>I want to import an Ascii file, which consists of only
>>1 line, but it is pretty large (>32k).>Every 1000 chars
>represent a 'record'. So i'd like
>>to be able to read 1000 chars at a time.
>>The import statement (using version 8, not 9) can only>read
>one entire LINE at a time (we're on an NT system)
>>.>Does anyone know if there's an easy solution for this
>>?>
>>
>The simplest way is to use either Quick Basic or 'C' to
>randomly read the file 1000 bytes at a time, and write
>out an ASCII file that PROGRESS can handle (multiple
>records).
>
"Charlie Beveridge" wrote:
>
>"Robert Veenstra"
>wrote:
>>>I want to import an Ascii file, which consists of only
>>1 line, but it is pretty large (>32k).>Every 1000 chars
>represent a 'record'. So i'd like
>>to be able to read 1000 chars at a time.
>>The import statement (using version 8, not 9) can only>read
>one entire LINE at a time (we're on an NT system)
>>.>Does anyone know if there's an easy solution for this
>>?>
>>
>The simplest way is to use either Quick Basic or 'C' to
>randomly read the file 1000 bytes at a time, and write
>out an ASCII file that PROGRESS can handle (multiple
>records).
>
Charlie:
I've used the SEEK function to reposition my stream. I think this could be a way to read, piece by piece, your entire file.
Greetings,
Louis Navarro