I've managed to open a textfile and show the contents of it in an editor gadget. But once I've edited the file I can't seem to save it.
What's the easiest way to write the contents of an Ed Gadget?
Cheers
How do you save the contents of an editor gadget?
How do you save the contents of an editor gadget?
Mr Tickle.
Athlon xp 2500+, Gigabyte KT400-FSB333, Gf3 Ti200, SB Live 5.1
Athlon xp 2500+, Gigabyte KT400-FSB333, Gf3 Ti200, SB Live 5.1
Open a file, get the text from the Editor Gadget using 'Text$ = GetGadgetText(#Gadget)' then write that to the file using 'WriteString(Text$)'. Thats the easiest way... BUT you will have problems with strings over 64k due to PB internal string buffer, so its maybe best in using memory buffers to hold the string before writing and using 'WriteData(*MemoryBuffer, LengthToWrite)'. 
