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

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?
  • Comment on Re^3: calculate sum of numbers inside a text file

Replies are listed 'Best First'.
Re^4: calculate sum of numbers inside a text file
by davido (Cardinal) on Sep 27, 2015 at 06:16 UTC

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


    Dave

Re^4: calculate sum of numbers inside a text file
by parv (Parson) on Sep 27, 2015 at 08:51 UTC

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