Being entirely new to the Internet, does anyone know how to write a simple

program in Pascal to do the following:

Set up a datafile

Read the datafile

Print the datafile in the following manner:

Put data into an array where there are four columns, as follows:

1st 2nd 3rd Sum

--- --- --- ---

--- --- --- ---

--- --- --- --- and so on...

Where the data are put into 1, 2, and 3 and are then added to make the sum

(the fourth row), then this process is repeated for the next line, and so

on until all the data are used up or "read out", this being done in a

random order. The last step is to print it out.

How do you establish that you have reached the end of the datafile when it

is random?

How do you set a variable that one can use for the data and the program

knows that it has already "used up" that particular value?

How do you establish the place value for the matrix--would it be x,y with a

progression from 1,1 or 0,0 to n, n?

I was heavy into mathematics some years ago but never got to take any

computer programming, and I mean none, zero.

I envy you people who know this stuff. Can you show me how to write this

program? Should I be using another language?

Thanks for your help!

By the way, if you are male, you should be giving {*filter*} regularly (at least

three times a year) to get your excess stored iron level down to that of

premenopausal females, then you will be totally protected against coronary

heart disease like they are....cancer too. Iron is an incredibly