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 

File Appending fix

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
tally



Joined: 06 Apr 2008
Posts: 7

PostPosted: Sun Apr 06, 2008 7:26 pm    Post subject: File Appending fix Reply with quote

I've been around these forums anonymously for a while and working with ahk on my own, obviously with the help of the people who post (thank you). Anyway, off with the life story and on topic ive been working with a rather large project and i have a notepad-type editbox in it, where i can save entered text with autoincludes (autoexec at top of script) so i can work faster... and anyway after working on it for a while and adding several if's, etc i noticed instead of there being spaces those annoying little squares popped up in notepad while i was testing it, so i pondered for a while, asked a few of my friends and got a solution, here it is



if you dont know what i am talking about by little squares, instead of there being a
"
"
theres a little unkown symbol (which appears to be a bug in Smart GUI creator hehe)

Code:

FileRead, fsvread, %filesave%
StringReplace, readstr, fsvread, `n, `r`n, All
Filedelete, %filesave%
FileAppend, %readstr%, %filesave%



Theres probably a more effective way, or a different way but this works and its pretty fast so i figured i would contribute, am i doing it right? Razz
Back to top
View user's profile Send private message
jaco0646



Joined: 07 Oct 2006
Posts: 559
Location: MN, USA

PostPosted: Sun Apr 06, 2008 8:45 pm    Post subject: Reply with quote

I've encountered the same problem.
Adding an return/Enter
_________________
http://autohotkey.net/~jaco0646/
Back to top
View user's profile Send private message Visit poster's website
tally



Joined: 06 Apr 2008
Posts: 7

PostPosted: Mon Apr 07, 2008 4:37 am    Post subject: Reply with quote

right, but i am not file appending like that... this is taking a large amount of text from an edit box, and if you encounter problems with it, this is a solution Smile


(when i clean up my script ill post it and show you maybe)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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