I want to load all filenames from a folder in my project to a string array.
But I am not able to. Already tried it with the DirectoryInfo, but I am not able to load the wanted Directory.
Just to be sure. I do not want to copy all files to the IsolatedStorage. I just want to get the filenames.
Could anybody please provide me a solution to do it.
Thanks so far!
WP7 application does not have any API to work with file system.
If you have files in project folder – you can mark them as Resources, and read them usin
Application.GetResourceStream(new Uri(fileName, UriKind.Relative));If files are marked as
Content– you can not get the list of them. You can use only hardcoded names.If files marked as Embedded Resources you can list them by this code: