reading a text file and printing (using Delphi)


[ DelphiLand Discussion Forum ]

Posted by Jason on April 28, 2003 at 07:53:00:

How do I write a Delphi program that reads a text file of Integers and then prints to screen the largest and smallest values found in the file. The file is called Input.txt.

These numbers are similar to the ones I am going to use

12
14
2
78
3

I want it say:
The largest number found in the file input.txt is 78.
The smallest number found in the file input.txt is 2.

How do I do this?


Related Articles and Replies:


[ DelphiLand Discussion Forum ]