Re: Script for reading flat file without delimiters - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: Script for reading flat file without delimiters
Date
Msg-id 44A3D4B2.5080601@wildenhain.de
Whole thread Raw
In response to Script for reading flat file without delimiters  (Mehdi Aboulkassim <mehdi10ab@yahoo.fr>)
List pgsql-general
Mehdi Aboulkassim schrieb:
> Hy everybody,
>
> I have to write a function that takes a flat file name in parameter and
> load a table with the file information.

Which programming languages do you plan to use?

> I think that it has to read the file line per line and parse each one to
> retreive each column data.

probably.

> There is NO DELIMITERS between fields.
>
How can the fields identified then? Fixed size?
You need to provide much more details - otoh,
it should not be too hard with a scripting
language and just some script you write.

Regards
Tino

pgsql-general by date:

Previous
From: Mehdi Aboulkassim
Date:
Subject: Script for reading flat file without delimiters
Next
From: Michael Fuhr
Date:
Subject: Re: Script for reading flat file without delimiters