Board index » delphi » Getting records from a .TXT file

Getting records from a .TXT file

Hi every body

I need to get data from a .TXT file, each row is a record delimited by
the
positions on the file.

I do not know how to read the file and each space on it.

Does somebody know it.? I am using Delphi 3 and Paradox Files

Thanks in advance

Roberto Martinez

 

Re:Getting records from a .TXT file


See my response to thread titled 'Text Table'.  There's some
URL's that discuss this.  

From your brief description, I'm guessing your fields are fixes sizes
rather than delimited.  Your solution lies in understanding how to
build a Schema file, which is explained in both articles listed on
other thread.

Regards,
Jim McKay

Quote
Roberto Martinez wrote:

> Hi every body

> I need to get data from a .TXT file, each row is a record delimited by
> the
> positions on the file.

> I do not know how to read the file and each space on it.

> Does somebody know it.? I am using Delphi 3 and Paradox Files

> Thanks in advance

> Roberto Martinez

Re:Getting records from a .TXT file


You can use the BDE ASCII driver. See ASCIIDRV in the BDE API help file in
your BDE directory. You can also use the Pascal text file i/o routines
(AssignFile, Reset, Readln and Writeln).

--
Bill

Bill Todd (TeamB)
(TeamB cannot respond to questions received via email)

Other Threads