AutoHotkey Community

It is currently May 27th, 2012, 1:39 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: FileAppend writes 0
PostPosted: July 19th, 2005, 12:19 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
We almost have binary data processing internal in AHK. The example functions in the Help ExtractInteger and InsertInteger allow manipulating them (although with a hidden dll call). One could think that
Code:
FileAppend %x%, *c:\z.dat
would write binary data, but it stops at the first 0 character. Removing this stop (also at FileRead) and write the whole variable in binary mode would make any further dll call unnecessary. (Or, another parameter could tell the size.)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2005, 2:19 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I see what you mean. There is a plan to have better file commands/functions so that you can have multiple files open at the same time.

Improving FileAppend to write binary data could probably be done via a new asterisk option (for data size) in the last parameter. However, adding such built-in ways to read and write binary files is not the highest priority because DllCall can already do it. Perhaps someone could adapt the example in the following post into a set of includable functions to make it easier: http://www.autohotkey.com/forum/viewtop ... 2389#22389


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: oldbrother and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group