Link to home
Start Free TrialLog in
Avatar of ysimon
ysimon

asked on

Read veriable length parameter from a string

I have a text file and each line has N variables(string) between " and ". Each variable length is not fixed and could be 0. How can I use a simple way to read them one by one.

"111","","defg"
"222","ABCDE","V22ds"
"321","dasdsa","s"
...

Thanks
Avatar of schutnik
schutnik

If you have a constant number of variables on each line, you could use the Text ODBC driver to access the file as a CSV file.

Kelly
Avatar of ysimon

ASKER

Could you please tell me more about CSV file. Can I build a database for that kind of text file?
Avatar of ysimon

ASKER

Could you please tell me more about CSV file. Can I build a database for that kind of text file?
ASKER CERTIFIED SOLUTION
Avatar of rwilson032697
rwilson032697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here is another one you could look at:

ftp://ftp.cdrom.com/pub/delphi_www/ftp/d20free/csvsinfo.zip

"This component takes a comma seperated string as input and splits it up into seperate fields that can be read out of a StringList. Handy for reading comma seperated files. See http://www.skybound.club.tip.nl for a sample application"

Cheers,

Raymond.
Avatar of ysimon

ASKER

Very good
I have solved my problem by using the CSV.
Thanks