- Home /
Loading multiple files using js, importing a set of xml files
Hi, I'm trying to load an arbitrary number of XML files using js. I have a C# script that can load up an array of files by directory that looks like
string[] filePaths = Directory.GetFiles(Application.dataPath + "/PathTraces/","*.csv");
and im trying to do something similar in js.
thanks dylan
Answer by Mike 3 · Jun 22, 2010 at 06:13 PM
Something like this should do it:
import System.IO;
//in your function var filePaths : String[] = Directory.GetFiles(Application.dataPath + "/PathTraces/","*.csv");
got it. TY. Didn't realize they use the same library, feel a little stupid about that now.
Can we use multiple xml files for our games in order to manage different data???
Your answer
Follow this Question
Related Questions
File access in Windows 8? 2 Answers
How can I load multiple files from a hosted folder? 1 Answer
Load file on Android 1 Answer
Ho do I read a text file on Android (and iPhone)? 1 Answer
Reading files on Android, 1 Answer