02-06-2009 12:07 PM
I cannot get what appears to be a "beginning of line" character out of the first line of ASCII text that I send as a header to a binary file. It looks like this (below) and the relevant portion of code is attached. Will someone please point out what is probably obvious?
¿>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>user field>>>>>>>>>>>>>>>>>>>>>>>>>>>>
SITE NAME: Angela, Montana
STATE/PROVINCE: MT
COUNTRY: USA
>>> The following code in double quotes is REQUIRED to start the NIMS <<
>>> The next 3 lines contain values required for processing <<<<<<<<<<<<
>>> The lines after that are optional <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
"MTBB04a" <-- 2 CHAR EXPERIMENT CODE + 3 CHAR SITE CODE + RUN LETTER
2605-04 2605-04 <-- SYSTEM BOX I.D.; MAG HEAD ID (if different)
500 0. <-- N-S Ex WIRE LENGTH (m); HEADING (deg E mag N)
500 90. <-- E-W Ey WIRE LENGTH (m); HEADING (deg E mag N)
44141 <-- N ELECTRODE ID
44142 <-- E ELECTRODE ID
44143 <-- S ELECTRODE ID
44144 <-- W ELECTRODE ID
6' Copper <-- GROUND ELECTRODE INFO
COMMENTS: Can't get stupid open file characters (1st line, 1st 4 characters) out of the header.
Solved! Go to Solution.
02-06-2009 12:17 PM
Hi,
While writing to a binary file there is an option to prepend the size of the string. You will need to wire a false boolean to remove those "beginning of line" charactes!
Amit