We help IT Professionals succeed at work.
Get Started

Reading and writing to a txt file in Free Pascal

M S asked
Last Modified: 2018-07-30
I am going to be doing some simple text processing with Free Pascal.  I will have to read in a text file, chop the text up a bit, and then write to a new file.  I looked for a sample program online and it talked about a dat file.  I don't remember how this relates to a txt file.  My input file is a txt file.

Years ago I was working in a unix environment, and I vaguely remember doing things with < or > to tell the operating system what input file to use and what output file to use.  How do you tell Free Pascal what your input and output files are?
Watch Question
Most Valuable Expert 2018
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE