AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FileAppend, % Chr(10), 2-bytes file.txt

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
rousni



Joined: 23 Mar 2006
Posts: 46

PostPosted: Sun Nov 11, 2007 8:58 pm    Post subject: FileAppend, % Chr(10), 2-bytes file.txt Reply with quote

Code:
FileAppend, % Chr(10), 2-bytes file.txt


I would like to append only one char - Chr(10) -
but this appends Chr(13)+Chr(10)

Can this be avoid?

Thank you for your help
Back to top
View user's profile Send private message
BoBoĻ
Guest





PostPosted: Sun Nov 11, 2007 9:12 pm    Post subject: Reply with quote

Indeed. Just use the RTFM parameter!

Quote:
Binary mode: To append in binary mode rather than text mode, prepend an asterisk to the filename. This causes each linefeed character (`n) to be written as as a single linefeed (LF) rather than the Windows standard of CR+LF. For example: *C:\My Unix File.txt


Wink
Back to top
rousni



Joined: 23 Mar 2006
Posts: 46

PostPosted: Sun Nov 11, 2007 9:15 pm    Post subject: Reply with quote

I am very sorry, this is in the help file:

Quote:
To append in binary mode rather than text mode, prepend an asterisk to the filename. This causes each linefeed character (`n) to be written as as a single linefeed (LF) rather than the Windows standard of CR+LF.


I love AutoHotkey Exclamation
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group