P
Public Interest
I am trying to scan stock price and volumes on a watch list. I have 1100
stocks on the list and I want to save them in a single file then use excel.
Here is the format I want:
symbol|price on day1|volume on day1|price on day2|price on day2|....
IBM|98.02|203092|97.01|1212300
SUNW|3.45|1112232|3.72|1212219
I will scan the price and update add the new price and volume to the end of
the line of each stock. The only thing I came up is to read the whole file
in one array and add things to each element of the array then rewrite the
whole array to the file. I know it is kind of breaking the RULE of not
reading the whole file but only line by line. And it takes me 1 hours for
scan all the data due to my dial-up connections. So I want to have something
that I can start and pause then restart.But if I only read line by line, how
do I append only to the end of the line not to the end of the file? It came
back to the old question which is how to delete/modify lines in a text file.
I am using active perl on windows.
stocks on the list and I want to save them in a single file then use excel.
Here is the format I want:
symbol|price on day1|volume on day1|price on day2|price on day2|....
IBM|98.02|203092|97.01|1212300
SUNW|3.45|1112232|3.72|1212219
I will scan the price and update add the new price and volume to the end of
the line of each stock. The only thing I came up is to read the whole file
in one array and add things to each element of the array then rewrite the
whole array to the file. I know it is kind of breaking the RULE of not
reading the whole file but only line by line. And it takes me 1 hours for
scan all the data due to my dial-up connections. So I want to have something
that I can start and pause then restart.But if I only read line by line, how
do I append only to the end of the line not to the end of the file? It came
back to the old question which is how to delete/modify lines in a text file.
I am using active perl on windows.