Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Carriage Return or Not?

Status
Not open for further replies.

emergencyplan

Technical User
Aug 19, 2003
34
GB
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
 
Hello

Problem solved, it was a line feed, not a carriage return.

Fantastic,

Laurence
 
Something every programmer should have is a good hex editor to let you inspect data & files. I use HexEdit from:
Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top