I wanted to copy the text from one text file to another with a different name and add one - at the beginning of the line of the text file.
For example:
I have a text file with the following text "0000192" and when copying it to another text file I wanted to get it "-0000192".
But I do not know how I can do this.
I'm creating the first text file like this:
string devolta = Convert.ToString((bsoItemTrans.Transaction.TotalAmount * 100).ToString("-000000000"));
System.IO.File.WriteAllText(@"C:\movedir\SUBTOTALE.txt", devolta);