2
Reply

C# add to array

dc

dc

Oct 14 2012 11:05 AM
2.4k
In a C# 2008 application, I need to be able to add records to a string array once the string array has been setup from the code listed below. 
  string[] Files = Directory.GetFiles(strFullpath, "*pdf")
                                                                 .Select(path => Path.GetFileName(path))
                                                                 .ToArray();

Thus once the   string[] Files hae been setup, can you tell me how to add more records to the Files array of string[] objects?

Answers (2)