I have large files with 5 columns of numbers. First column is an integer and other columns are reals, with one space in between all columns. i want to be able to read the first two numbers on a line, but be able to read the others later without having to backspace. The advance='no' feature is not working for me, as it requires specifying the format of the variables being read, but the format changes randomly.
The main issue is that there are negative as well as positive numbers in my files, and the negative numbers take up one more character space than the positive numbers (if only the positive numbers came with a "+"!). There is no way to predict when a number will be negative, and so i can't come up with a way to specify the format that will work for numbers which have fluctuating lengths. Any ideas are greatly appreciated. i am considering regenerating these files with no negative numbers, but this would be a lengthy process!
The main issue is that there are negative as well as positive numbers in my files, and the negative numbers take up one more character space than the positive numbers (if only the positive numbers came with a "+"!). There is no way to predict when a number will be negative, and so i can't come up with a way to specify the format that will work for numbers which have fluctuating lengths. Any ideas are greatly appreciated. i am considering regenerating these files with no negative numbers, but this would be a lengthy process!