 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
tally
Joined: 06 Apr 2008 Posts: 7
|
Posted: Sun Apr 06, 2008 7:26 pm Post subject: File Appending fix |
|
|
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?  |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 559 Location: MN, USA
|
|
| Back to top |
|
 |
tally
Joined: 06 Apr 2008 Posts: 7
|
Posted: Mon Apr 07, 2008 4:37 am Post subject: |
|
|
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
(when i clean up my script ill post it and show you maybe) |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|