User Tag List

Results 1 to 5 of 5

Thread: Loading words from a text file

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Fortaleny (Valencia - Spain)
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loading words from a text file

    Hi friends!

    I'm planning to make several word-based games, like Hangman, Crossword, etc...

    The idea is to load the words from an external .txt file, so I can add/edit/remove them without editing the executable file.

    Which is the best way to accomplish this?

    Thank you very much.

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Fortaleny (Valencia - Spain)
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading words from a text file

    I think I should use the Ini and the Array objects, but I'm still trying to figure out how to use them.

    Please, any help is welcome.

    Thanks.

  3. #3
    No Products Registered

    Join Date
    Aug 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading words from a text file

    You could use ini and string parser, i think they would work well

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading words from a text file

    I'm a great fan of the List object, as well - it allows you to load in a plain text file already split up line by line.

    As you can see there are several ways to handle files in MMF - which one is best depends on exactly what you're doing with the contents.

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Fortaleny (Valencia - Spain)
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading words from a text file

    I've tried both of your suggestions, and I think it will be easier to use the INI and String Parser objects.

    Maybe I should obtain a random number at the start of the frame, and then search for that line in the txt file, and retrieve the string associated to it.

    At the moment, I've only been able to load all of the lines and put them into a single one. I'm still a bit confused about all of the options of the INI object.

    Thank you very much. I'll keep on trying and I'll let you know. I hope I can make it.

Similar Threads

  1. Colourizing words in Text Blitter
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th January 2018, 08:20 PM
  2. Loading a text file from the internet
    By Jason in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 6th July 2011, 03:38 AM
  3. Loading an External Text in an Edit File
    By spiderjjr45 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th February 2010, 02:32 AM
  4. Change some words in an text file
    By juanjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st May 2008, 10:07 PM
  5. Colourizing words in Text Blitter. For MechaBowser
    By DanielRehn in forum File Archive
    Replies: 2
    Last Post: 29th December 2006, 09:12 PM

Posting Permissions

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