ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] storing number in hex in file
by Jeff Hobbs other posts by this author
Dec 6 2007 10:58AM messages near this date
view in the new Beta List Site
[Activetcl] storing number in hex in file | [Activetcl] sending emails from window tcl
Gene Osteen wrote:
>              If I have the number 157 and I want to write it to a file as 
>  hex 9D, how do I convert it and write it to a file. The translation and 
>  encoding of the file has been set to binary.

Do you want the binary hex, or just the char hex?  For the former, use 
[binary format], the latter just [format].

Jeff
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Gene Osteen
Jeff Hobbs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved