in reply to variable passing....
The solution you want really depends on the whole sequence:
If your programs run in sequence, first the one that
If the programs are run in sequence, the one that computes the total then the one that uses it, you can write the total to a file and then use it. The alternatives for the file format would be:
|
|---|