User Tag List

Results 1 to 4 of 4

Thread: Loading string from file

  1. #1
    Clicker Multimedia Fusion 2Android Export Module
    Fusion 2.5 (Steam)
    manwich's Avatar
    Join Date
    Apr 2013
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loading string from file

    Hi, I am trying to find some way to load an external text file. Basically, due to the Get object not supporting https, I have instead used the Web View Object's Download URL to file feature to save a .txt file to ExternalStorageDirectory$. This works fine and I can see the created file in the root of my SD card. Now I need a way to load it back in to the app. I've tried loading it in String Parser 2 but it doesn't appear to work- is this function not supported on Android?
    Are there any other alternatives to load external files?

    Thanks,
    Will

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,427
    Mentioned
    227 Post(s)
    Tagged
    4 Thread(s)
    Did you try to use EditBox object and "load text file" action?
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Multimedia Fusion 2Android Export Module
    Fusion 2.5 (Steam)
    manwich's Avatar
    Join Date
    Apr 2013
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Huh... I could have sworn the Edit Box didn't have that feature; that's why I've always used Rich Edits; but it does! My mistake!
    Got it to work with that function by loading ExternalStorageDirectory$( "Android object" )+"/webviewhtml.txt"
    Thanks! By the way, thanks so much for the Web View Object, it's incredibly useful.

    Now this might be a bit more ambitious, but can anyone think of a way to load a directory listing of the External Storage folder? To enable a sort of file browser?

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,427
    Mentioned
    227 Post(s)
    Tagged
    4 Thread(s)
    Yes, you can do that using list object, you read files a dir

Similar Threads

  1. Loading images by name (string) not by file format
    By simonbelmont in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 21st October 2012, 08:05 AM
  2. String Parser 2 - External File Loading
    By UrbanMonk in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 7th August 2012, 07:17 PM
  3. Issue with loading file from File Object.
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st April 2012, 11:34 AM
  4. File loading times?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th April 2010, 09:56 AM
  5. File loading
    By Jacob in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th August 2007, 08:45 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
  •