in reply to Re: calculate sum of numbers inside a text file
in thread calculate sum of numbers inside a text file

Thanks Dave.
  • Comment on Re^2: calculate sum of numbers inside a text file

Replies are listed 'Best First'.
Re^3: calculate sum of numbers inside a text file
by CR18 (Initiate) on Sep 27, 2015 at 05:58 UTC
    Can I put this while loop inside my array so that the array will first get the data from the file, and then run the calculation?

      No. Arrays are data containers. They do not contain while loops.


      Dave

      If you must do that, (then) should be able to, though overkill, via tie, object oriented model, etc.