comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: data type determination in a file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: data type determination in a file [message #27404] Sun, 21 October 2001 09:32
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: data type determination in a file
Next Topic: A few IDL benchmarck results

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:52:42 PDT 2025

Total time taken to generate the page: 0.00438 seconds