Is there any way I can take the file path of a folder, then return the contents of it, preferably into an array?
GetContents(); or something?
~Sandstorm
Is there any way I can take the file path of a folder, then return the contents of it, preferably into an array?
GetContents(); or something?
~Sandstorm
Hi,
Yes there is! :P Use these:
SCAR Code:function GetFiles(Path, Ext: string): TStringArray;
Returns the files in a directory.
function GetFolders(Path: string): TStringArray;
Returns the folders in a directory.
~NS
Thanks a lot, that will help my current project a lot!
~Sandstorm
what project are you doing?
~Shut
All my scripts are held on Googlecode git, so if you ever see a problem, fork it and send me a pull request
If a script is grey, it doesn't work, if it's colour then it does!
My Tutorials:-
Everything you need to know about setting up Simba, SRL and Reflection!, How to sort out the MSVCR71.dll error
How to set up players for autoing with Simba, SRL/Simba Standards (with examples), Defines
Auto Updater and Git, Using a testing branch for git, Adding SRL Stats to your script
Creating your own font set for Simba, Guide to Cups, How to make 1.45M (RSGP) a day (not really my tut)
Download a image and set it as your Desktop Wallpaper in C#, How to make your first PHP file uploader
<Coh3n> Shuttleu, fuck I love you right now
I'm working on a music player.
~Sandstorm
Make an indexer that indexes your hard drive.
There are currently 1 users browsing this thread. (0 members and 1 guests)