open file with numbers and multiply them
i have large ascii files that i need to open and multiply each number on it by a factor
how will i be able to implement this?
will i have to store the numbers in a variable and then multiply it? and how can i output the result to an ascii file looking the same as the original one?
the data is like this:
-4562.16 741.974 -3552.31
-4559.26 742.236 -3550.07
-4548.94 739.526 -3530.89
(xyz)
I have looked for this but i don`t know how to do it.
any ideas would be great.
thanks