Results 1 to 3 of 3

Thread: File Stream Object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,924

    File Stream Object

    The File Stream Object allows you to open multiple files at once without ever once loading them into memory. Once the files are open, you can get and set individual characters, shorts, integers, floats, doubles, and strings however you please.

    This is especially useful for dealing with very, very large files that would take quite a long time to load into memory, and would then be using a lot of memory. Because this extension never actually loads the file into memory, you are safe to quickly open and save large files. This does not mean that it will accelerate fastloops to go through large files
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,924

    FileStream v1.2.1 Released

    I have completely rewritten the object to support Unicode. This release includes one example file.

    New features:
    • Actual error handling - you can now use On Error and be notified of problems and mistakes while working with file streams
    • Unicode support - unicode filenames are supported and you can read and write both UTF-8 and UTF-16/Unicode strings to/from files
    • You can now read into memory and write from memory - great for e.g. Lacewing and Binary Object
    • You can now change the read/write cursor positions before reading or writing
    • More options for string handling, specifically length-terminated strings are now supported in the form of a four-byte integer size preceding the string and no null terminator
    • Added condition to test if the read cursor is at the end of the file
    • Added expressions that make it easier to read strings - UTF8/16 expressions to read a specific number of whole characters (rather than code points) and to read until a sentry string (e.g. newline or comma)


    Changed features:
    • The "File is OK" condition will now only be false if the file is in an unrecoverable state. If a read/write error occurred that is recoverable, you can still work with the file, but if this condition is false you must close the file and try again. Typically this could happen if you are reading/writing a file to a flash drive that is pulled out during the operation.


    Removed features:
    • The "clear error state" action is no longer supported because it is no longer necessary - recoverable error states are cleared automatically before each read/write operation. All error types, both recoverable and unrecoverable, now trigger On Error.


    Download from here or via the attachment to this post. Always check here for the latest version. Report any issues here.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,924
    The Windows XP support was not done properly in the previous version, so if you are having problems on Windows XP, I have fixed them in v1.2.2
    Attached files Attached files

Similar Threads

  1. [Beta] File Stream Object
    By LB in forum Extension Development
    Replies: 17
    Last Post: 15th May 2016, 01:33 PM
  2. iOS video object, how do you stream a movie?
    By Xeeko in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 18th October 2012, 07:05 PM
  3. Stream?
    By RhysD in forum Click Convention 2011 (archived)
    Replies: 2
    Last Post: 20th August 2011, 11:03 AM
  4. NSV Stream Object
    By Spryz in forum Extension Development
    Replies: 0
    Last Post: 9th February 2009, 03:13 AM
  5. Continuous Stream?
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th March 2007, 07:50 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
  •