I'd like to change the file that the FileInfo object is currently using. Let say I want to loop through 1000 files.
FileInfo myFile = new FileInfo("myfile.txt");How can I do this? Was hoping for .FileName =, but it's readonly.
myFile.ChangeFile("myfile2.txt");
Anonymous User
18-Dec-2013You can't do this in c# you don't have a built-in function use this function instead