I have a file with a code on C. It is necessary to find 100 lines there, it will be a function call. And replace the function name there. Those. find the characters before the opening of the bracket ( and replace it with another name. How can this be adequately prescribed in C #?
- With the help of a regular season, for example - Andrey NOP
- @AndreyNOP But if I don’t know the name of the function I’m looking for. But I know that it is called in line 100? Open file - go through the lines, and in the 100 line to find the characters and replace them? - Fresto
- 2Read line by line and write to the new file. At the same time, count the lines and process the hundredth line (separate the opening bracket and tail behind it, and stick to the new function name). Well, or immediately read everything line by line into an array, process the 100th element. and drop the same line by line into a new file. - Akina
- @Akina everything, understand, thanks) - Fresto
|