dc

dc

  • NA
  • 663
  • 0

C# add to array

Oct 14 2012 11:05 AM
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)