Import files

Posted by LegacyUser on 18-Apr-2001 11:17

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 ?

All Replies

Posted by LegacyUser on 19-Apr-2001 12:00

"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).

Posted by LegacyUser on 07-Aug-2001 05:54

"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).

>

Posted by LegacyUser on 07-Aug-2001 05:55

"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

This thread is closed