Announcement

Collapse
No announcement yet.

How to read in list of external files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to read in list of external files

    I am trying to load in a pre-saved profile by reading in the names of the profile files in a folder, but can't figure out how in AS without the use of something like PHP. We save the profiles out to files fine and then need to be able to populate a list so the user can pick one to load up.

    It's the reading in the file names to populate the list that is stumping me. Once the names are in the list we are good to go. Any ideas?

    #2
    When you are writing out your file, store the file name in a Config array var.

    var config array< string > Files;

    Files[ Files.length ] = FileName;
    SaveConfig();

    This way it reads all the file names in from the config and the array is populated automatically.

    Comment


      #3
      Got it working, thanks.

      Comment

      Working...
      X