Hi JohnH,
I like this idea much better than trying to modify each line in a certain place. Only one problem; the input files contain multiple lines and a read with a for each statement as shown below (then reads the conditions from the database):
foreach (var line in...
I'm copying the line from the input file:
29K|375|48625|NOK SPA|3811241496|S|888|None|10/10/2014
Then pasting the line into a separate output file:
29K|375|48625|||888|None|10/10/2014
So values NOK SPA, 3811241496, and S need to be removed in the output file, and the "|" stays. Which lines...
The database copies a line from an input file. This line might look like this, separated by the delimiter "|":
29K|375|48625|NOK SPA|3811241496|S|888|None|10/10/2014
Then it is copied into an output file. In the output file though, several fields need to be removed (but the delimiters kept in)...
I have a C# application that, depending on certain database conditions, creates a new file, opens it, and writes a record from an input file into the file.
Each field in the record is separated with an "|", and certain conditions require a new file to be opened, an input file read, and copied...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.