Home »
Public Forums »
archive »
Re: data type determination in a file
Re: data type determination in a file [message #27404] |
Sun, 21 October 2001 09:32 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Reimar Bauer (r.bauer@fz-juelich.de) writes:
> Or did someone has an idea how to determine types from an ASCII file
> ,string or byte array ?
I suppose as a first approximation you could sample the
data in bytes and look for those ASCII byte values that
represent characters (ABC...XYZabc...xyz). I think you could
assume anything with those characters would be a string.
Wouldn't work for Chinese, of course. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Current Time: Wed Oct 08 16:52:42 PDT 2025
Total time taken to generate the page: 0.00438 seconds