text files - Using DirectoryInfo in C# - Stack Overflow
https://stackoverflow.com/questions/3023520/using-directoryinfo-in-c-sharp
WEBJun 11, 2010 · If there a more efficient way to do the following: DirectoryInfo di = new DirectoryInfo(@"c:\"); newFileName = Path.Combine(di.FullName, "MyFile.Txt"); I realise that it’s only two lines of code, but given that I already have the directory, it feels like I should be able to do something like: newFileName = di.Combine(“MyFile.txt”);
DA: 4 PA: 80 MOZ Rank: 93 Up or Down: Up