Jul 25, 2000, 7:33 AM
Post #1 of 4
I think that the only way I can ask this so that it makes any sense is to show an example of what I want to do.
Take a given input file:
This is line 1 of the input file
This is line 2 of the input file
This is line n-1
This is the last line of the file
and store it in arrays as such:
@array1 = (This, is, line, 1, of, the, input, file)
@array2 = (This, is, line, 2, of, the, input, file)
@arrayn-1 = (This, is, line, n-1)
@arrayn = (This, is, the, last, line, of, the, file)
which would result in the same number of arrays as the file has lines, with each array storing a single line of the input file. This would allow the file size to change, without requiring that the array creation process be changed.
Any help is appreciated.