Solved

Parsng text

Posted on 1998-04-29
3
137 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
3 Comments
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
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
Comment Utility
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
Comment Utility
Just lay it out like an ini file and use TInifile !
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now