.NET Framework Developer Center > .NET Development Forums > .NET Base Class Library > Help with C# to develop a GUI program to read the .txt file for editing. Then to save the edited file to a new .txt file.
Ask a questionAsk a question
 

AnswerHelp with C# to develop a GUI program to read the .txt file for editing. Then to save the edited file to a new .txt file.

  • Monday, November 02, 2009 8:05 PMkcduplessis Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I need to design a C# program that reads the .txt file and puts it into a GUI that allows me to modify the contents of it. Then, once I am done modifying the file in the GUI application, I need to save it to another .txt file in the same format it is in, i.e. the same number of spaces. 
    Here is an example of the number of spaces.
    the "APTYPE=" in the example, is in position 50 in the line. You must count the spaces to ensure it starts at the same spot each time after you modify the file in the GUI and save it. This is where I am lost.

    G TITLE=XYZ                                      APTYPE=ABCProject CUST=

Answers

All Replies