Return an Array

Feb 25 2009 6:13 AM

Hi all,

Firstly thanks in avance for any help you give.

I am pretty new to programming but enjoying learning it at present.

Probably quite a simple solution but I am wondering if it would be possible for someone to help me with returning an array list.

Basically the software is reading files from a network share i am trying to create a remote access web app.

I have a method currently set to void, it is held in a seperate c# file. 

This is the method.

public void ExecuteReadFiles(string DirectoryPath)

{

DirectoryInfo di = new DirectoryInfo(DirectoryPath);

FileInfo[] Files = di.GetFiles();

}

What i want to do is for it to return to the page a list of files held on that share.

Can you please advise?

Thank you once again.

 

Steve


Answers (1)