If I’m using System.IO; and have run the following:
string myPathway = @"R:\Hello.pdf"
FileInfo x = new FileInfo(myPathway);
Is there a method so I can reuse the object x but pointed at a different file located at “mySecondPathway”, or do I create a new FileInfo object y ?
Note that reassignment doesn’t re-use the actual object in-memory, but the
xjust now refers to theanotherFile.txtfile.