User Tag List

Results 1 to 4 of 4

Thread: Reading from a text file.

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Conno's Avatar
    Join Date
    Jul 2006
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading from a text file.

    I have a log file which is updated in real time (new lines added). Reading from the Log File and loading it into a List Object is no problem.

    The problem is when the file becomes 100K in size or bigger; and I need to check it every few seconds. I don't want to have to load the whole file into a list object just to get the last few added lines. With the larger size files, it can take upto 10-20 seconds to laod the entire file.

    Is there a way I can just read the last X amount of lines of a file. It doesn't even matter if some of them were read previously. For example, the last 50 lines, or the last 10 lines of a file. Even the last 1 line.

    Assuming the file is just plain text - how would one accomplish this?

    Look forward to any ideas you may have! All replies very much appreciated.


  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jul 2006
    Location
    Pittsburgh, PA, USA
    Posts
    777
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reading from a text file.

    If you could give us the whole story, what your game is about, and why you are using a text file, that would be helpful for us. Especially if we can suggest an alternative method for doing whatever you are doing.

  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Conno's Avatar
    Join Date
    Jul 2006
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reading from a text file.

    It's not a game, it's an application.

    I have no control over the way the log file is created. It's created real time by a 3rd party program. I need to read the details from the log file.

    I chose MMF to do it, because it's quick for prototype development. If there's no feasible solution, I'll just load up the ole VS

    But yeah, any ideas?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Reading from a text file.

    There is an extension for this problem, I think.

    [New Extension] Get Line

    current Download:
    [Extension] Download for Get Line BETA

Similar Threads

  1. Reading a Unicode text file?
    By netninja in forum Unicode Export Module Version 2.0
    Replies: 18
    Last Post: 25th June 2012, 11:05 AM
  2. Text Reading And Editing
    By variant in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th November 2009, 07:09 PM
  3. Reading a text- or csv file - possible?
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th July 2009, 01:23 PM
  4. reading a text file for lots of data (help?)
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 19th June 2008, 12:24 PM
  5. Reading text from file
    By KenTankerous in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th March 2007, 08:30 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
  •