Solved

Parsng text

Posted on 1998-04-29
3
138 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
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

778 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