-
append text to file
i'm trying to create a text file separated into lines, but I only know how to append text. I don't want to append directly after the last character. I want to add a new line like this:
__________
here is the existing text
This is the appended text
_____________
so far, I've only been able to add text to a file like this:
here is the existing textThis is the appended text
I'm using the file object to add the text. is there another object that can create a text file with multiple lines? and how to start each new line?
-
Re: append text to file
you can use the list object, rich text object or edit object to do it simply... also this part of the forum is not for help in MMF, it is for finished or showing off MMF-related things
-
Re: append text to file
Use an edit object, set its mode to multiline, enable autoscroll and use newline$ to denote a new line.
You can then do something like Set Edit Text to Edittext$("Edit Object") + newline$ + "To be appended".
Edit: My 2000th post!
-
Re: append text to file
"tonight we're gonna party like its 1999" well 1 off =p
-
Re: append text to file
thanks,
seems that works ok, I was trying to make a program that would create a runme.bat script from user input, however, my .bat scripting may have problems too (or it maybe something else, because using the same method to run a different program works, but seems running multiple programs in sequence in bash is different???)
so, i decided to let the users click each operation at a time rather than compile it into a single script.