Solved

Parsng text

Posted on 1998-04-29
3
140 Views
Last Modified: 2010-04-06
I want to take a text file (ex: C:\Demo\emp.txt) containing code numbers and their cooresponding descriptions and open it up and parse out the text to different data fields, but I'm not familiar with how to do this with Delphi?????
0
Comment
Question by:dpms
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1339502
Hi dpms,

Inter has made a tool for this some days ago. I can send it to you...

Regards, ZiF.
0
 
LVL 1

Expert Comment

by:millerw
ID: 1339503
You might want to try Lex and Yacc for Turbo Pascal.  Its up to version 4.01 now and it is just like the Lex and Yacc on Linux.  If you are interested:

http://www.musikwissenschaft.uni-mainz.de/~ag/tply/tply.html

Lex builds the lexical analyzer while yacc builds a compiler to actually read the lexical tokens you created with lex.  You can also use them separately if you want.  

If you need more info, just write.

Scott
0
 
LVL 1

Accepted Solution

by:
ssite earned 50 total points
ID: 1339504
Just lay it out like an ini file and use TInifile !
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question