User Tag List

Results 1 to 7 of 7

Thread: Finding End Of File using the GetLine object

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Finding End Of File using the GetLine object

    I'm using the GetLine object to load a file and parse the lines into different places:



    But different files can be different sizes, for example:

    -----------------------------------------------------------------
    1> Will you rap on the door?
    357
    2> Will you pull the cord?
    275
    3> or creep around the house to investigate the light?
    289
    -----------------------------------------------------------------


    -----------------------------------------------------------------
    1> Continue. . .
    357
    -----------------------------------------------------------------

    How can I stop getting the rest of the lines if the end of the file is reached? I've attached the program as it stands with source included, somebody might be able to decipher it. :grin:

    Thanks.

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    May 2007
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding End Of File using the GetLine object

    Hi, Nickydude.

    If I understand correctly what you need you can use "compare two general values" and make it a condition using this comparison:

    Current line number <= Number of lines

    or create a loop that happens for (number of lines) times.

    Let me know if that works for you.

    Best regards,

    Andre Guerreiro (byo)

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding End Of File using the GetLine object

    I get what you mean but how on earth do I do it?

    Also, looking at the image in the first post, how do I put a comment in between lines? I know how to in the Event Editor between events but not between each line in the event.

    This is all very confusing. In pseudo code this is what I want:

    Code:
    Load options file
    
    go to the third line
    if that line not empty
      load that line into a string value
      go to the fourth line
      if that line not empty
        load that line into a string value
        go to the fifth line
        if that line not empty
          load that line into a string value
          go to the sixth line
          if that line not empty
            load that line into a string value
            go to the seventh line
            if that line not empty
              load that line into a string value
              go to the eight line
              if that line not empty
                load that line into a string value
              endif
            endif
          endif
        endif
      endif
    endif

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    May 2007
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding End Of File using the GetLine object

    I'll post an example soon, Hold on.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    May 2007
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding End Of File using the GetLine object

    Ok, here's a simple example. Let me know if this is what you need.
    Attached files Attached files

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding End Of File using the GetLine object

    That explains it much better, thanks byo.

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    May 2007
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding End Of File using the GetLine object

    You're welcome.
    Any sugestions are appreciated.

Similar Threads

  1. GetLine
    By byo in forum Released Extensions
    Replies: 3
    Last Post: 11th February 2014, 10:12 PM
  2. Replace word with Getline
    By septeven in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th February 2012, 02:57 PM
  3. Finding time in seconds of sample file.
    By Livingstone in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th May 2010, 08:18 PM
  4. AVI - finding the file in Vitalize?
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 22nd April 2009, 12:17 AM
  5. Finding out the registry base or ini file
    By Yoda_Glenn in forum Install Creator and Patch Maker
    Replies: 4
    Last Post: 27th June 2008, 03:26 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
  •