[Solved] How to read comment from .cpp file and display it into text box?
Do you want to remove all the / and * characters? There are several ways to do it, but a simple approach is replacing all the characters with an empty space and then trimming all the space later, here’s a sample code to start you with: static void Main(string[] args) { string text = System.IO.File.ReadAllText(@”C:\test.cpp”); … Read more