s-news
[Top] [All Lists]

Reading 16-bit data in SPLUS.

To: s-news@wubios.wustl.edu
Subject: Reading 16-bit data in SPLUS.
From: "Faelt, Edvard" <efaelt@envivopharma.com>
Date: Tue, 17 Feb 2004 10:53:39 -0500

Hello everyone,

I need to read 16-bit integers stored in binary files on Windows into SPLUS 6.2, and can't really figure out a good way of doing it. I've tried using the readMapped() function, but the closest thing it accepts is 32-bit integer mode. I also tried reading the files as 32-bit anyway and then splitting the 32-bit integers into 16-bit ones, but when I do that I can't read the entire contents of the file if it has an odd number of 16-bit integers (the last one will be omitted because I'm trying to read 32-bit integers). So, now I'm wondering how you're supposed to do this. Is there a way of creating your own modes, e.g., or simply reading single bytes from binary files? Any help is appreciated.

Thanks,
Edward.



-------------------------------------
Edvard Faelt, M.Sc.
Automation Engineer
EnVivo Pharmaceuticals, Inc.
480 Arsenal St., Bldg 1
Watertown, MA 02472
T: (617) 225-4227
F: (617) 225-4267
www.envivopharma.com


<Prev in Thread] Current Thread [Next in Thread>
  • Reading 16-bit data in SPLUS., Faelt, Edvard <=