Write multiple lines to txt file and start from specific postion on line
Posted on 2014-12-31
I am writing a specific type of file from C# program and am trying to figure out how to acchomplish what I need.
What I need is the following -
There are multiple text boxes to enter data into such as firstname,middlename,lastname, ssn
I am looking to create a text file from this data which would have to be very specific for example.
I would create the text file and on the first line I would have"02C" then immediate following would have the first name then the middle name would start from the 20th position on the same line from the begining (which is where i cannot figure out some of it.)
then i would want it to create a second line in the text file that would show "03ABW" then immediately have the ssn
So the file in end would look like the following
Notice there are 20 positions from the 1st to where "S" starts in Smith