User Tag List

Results 1 to 3 of 3

Thread: can i get a few lines of a big file?

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can i get a few lines of a big file?

    Can i read the first few lines of a file without loading it fully into mmf2 (big files) if so what object should i use?
    and can i have a example if possiable?

    thankyou.
    bubba d

  2. #2
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Posts
    402
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: can i get a few lines of a big file?

    What sort of files are your talking about?

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: can i get a few lines of a big file?

    im wanting to idenify files by the "file header" (useing quick + binary object
    to open a portion of a file, flv or a mp3, video ect.) without having to load the extire file into memory.

    what for?
    in the firefox cache files are unnamed and there for i can find the file extension at the files header.

    (in anycase which i have trouble idenifying because each file header is unique, starting at differant bytes
    one way is to compare like these 2 examples of a JPG and a GIF

    files are loaded from byte array oject and use string parser object to transform into ASCII into edit object
    here is the first 14 bytes of each file (inlcuding the 0 byte)
    JFIFH

    GIF89a 

    but it doesnt cut it because of differant settings change the bytes so maybe start at and end at bytes?
    ------^^^^
    JFIFH

    code:
    compare two general values

    chr$( "String Parser", getbyteat( "ByteArray", 6))+chr$( "String Parser", getbyteat( "ByteArray", 7))+chr$( "String Parser", getbyteat( "ByteArray", 8))+chr$( "String Parser", getbyteat( "ByteArray", 9))+chr$( "String Parser", getbyteat( "ByteArray", 10))

    Equal

    "JFIF"

    and
    ^^^
    GIF89a 

    code:
    compare two general values
    chr$( "String Parser", getbyteat( "ByteArray", 0))+chr$( "String Parser", getbyteat( "ByteArray", 1))+chr$( "String Parser", getbyteat( "ByteArray", 2))

    equal

    "GIF"

    good code but
    am i on the right track? )


    thankyou.

Similar Threads

  1. List Object txt file load removing blank lines
    By AyreGuitar in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th July 2013, 09:40 AM
  2. Blank lines in INI file
    By DavidN in forum XNA Export Module Version 2.0
    Replies: 5
    Last Post: 11th October 2012, 07:12 AM
  3. [Request] Read x lines from huge text file
    By Richard_Pikk in forum Extension Development
    Replies: 6
    Last Post: 21st May 2009, 12:11 AM
  4. Drawing Lines
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th May 2008, 05:32 PM
  5. Command Lines (oh the joy)
    By workshop2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 11th April 2008, 06:21 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
  •