Link to home
Start Free TrialLog in
Avatar of lebron letchev
lebron letchev

asked on

Reading and sum data from a textfile with multiple numerical columns

Dear all,

Using Turbo Pascal or C or Turbo C (well primitive), how I read several columns with numbers from a text file and give the sum of each one?

Thank you in advance (if I found anyone that have programmed in Pascal.
Avatar of Fabrice Lambert
Fabrice Lambert
Flag of France image

Hi,

Not many solutions here, you'll have to read your file line by line, split each line, load everything in a 2D array (or a linearised array)
Then browse your array column by column to perform the sums.
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lebron letchev
lebron letchev

ASKER

Many thanks
Many thanks