emergencyplan
Technical User
Hello,
I am building an application for reading and displaying digital elevation files. The files are created by flood inundation prediction software, programmed in C++.
The file consist of a header and the elevation values, the header consist of five lines, seperated by what I believe to be a carriage return (Enter?).
I having been trying to use the input #1 structure, however the end of a line is not recognised in the code and therefore the string is read as 29000 characters long.
I have tried using instr(1,mystring,vbcr) to find the carriage returns, without success. When I open the file in notepad the file is not seperated onto different lines, whereas in Word or Wordpad it is.
Any ideas why this is causing a problem?
Thanks,
Laurence
I am building an application for reading and displaying digital elevation files. The files are created by flood inundation prediction software, programmed in C++.
The file consist of a header and the elevation values, the header consist of five lines, seperated by what I believe to be a carriage return (Enter?).
I having been trying to use the input #1 structure, however the end of a line is not recognised in the code and therefore the string is read as 29000 characters long.
I have tried using instr(1,mystring,vbcr) to find the carriage returns, without success. When I open the file in notepad the file is not seperated onto different lines, whereas in Word or Wordpad it is.
Any ideas why this is causing a problem?
Thanks,
Laurence