User Tag List

Results 1 to 5 of 5

Thread: append text to file

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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?

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    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!
    .:::.Joshtek.:::.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: append text to file

    "tonight we're gonna party like its 1999" well 1 off =p

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

Similar Threads

  1. Append a string in a text file
    By Ls2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th October 2013, 08:53 PM
  2. Append Ini Data To String?
    By stevenart1988 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th June 2013, 10:03 AM
  3. Append string
    By Jack_Bauer in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 29th January 2009, 10:40 PM
  4. Append lines to Text Blitter in top-down style
    By JoKa in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th July 2008, 09:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •