Kevin; There is only a single data-type in MUMPS, strings. What you are doing is a fixed length buffer read of characters (real characters or binary data). You are opening up a big bag of issues which the MDC argued over for decades. If you are talking about binary, are you talking about big-endian or little-endian representation (what do the bits mean?). By dealing in characters, we don't have to worry about byte order per word. Now some implementations did provide tools for doing these operations (most notable was Micronetics (now InterSystems). I believe that GTM has some of these same tools. They also have the thinnest binding with the underlying operating system, so poking out to do this type of operation is pretty simple in GT.M.
----- Original Message ----- From: "Kevin Toppenberg" <[EMAIL PROTECTED]> To: "Hardhats Sourceforge" <[EMAIL PROTECTED]> Sent: Sunday, August 21, 2005 6:46 AM Subject: [Hardhats-members] more M read questions The read command in M seems to be the most complicated function it has. I am trying to perform a binary read. I do it this way: read blockIn#255 The problem is that as I debug the code, $length(blockIn) does not always=255. I think this is because sometimes the stream contains a "terminator", such as a #13 etc. How do do a read that ignores the usual "terminators"? Thanks Kevin ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members