.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a text file that's read into a dictionary using a .net 6.0 console app. What's the best solution for modifying one or more of the keys, write the dictionary back to the original file.
Example:
Current Text read into a dictionary
C:\Temp\Temp123 123
C:\Temp\Temp456 456
Updated Text
C:\Temp\Temp123 123
$C:\Temp\Temp456 456 <-note the character used as a comment
The above updated text is written back to a text file - original is preferred.
Thanks,
Al