-
Oct 21st, 2014, 10:39 AM
#1
Thread Starter
Hyperactive Member
Merge two text files into one
For processing reason, I need to split big text file into two files. One is from column 1 to 200 and another is from 201 to 1500.
How to code to merge these two files into one text file, that is one file must be column from 1 to 1500?
-
Oct 21st, 2014, 10:48 AM
#2
Re: Merge two text files into one
You are talking about columns, why not have the file as a database rather than a text file?
-
Oct 21st, 2014, 10:50 AM
#3
Re: Merge two text files into one
You could perform a IO.File.ReadAllLines() call on both files, and then assuming they are the same number of actual lines (rows) because they came from the same file originally, you could loop through and recombine them for output. You would have to test to see how performance is.
-
Oct 21st, 2014, 10:52 AM
#4
Thread Starter
Hyperactive Member
Re: Merge two text files into one
In fact, these two text files are using vedit to translate from ebcdic file. (2G)
First, I use vedit to split two ebcdic files and then translate into two text files.
In order to insert into SQL, I need to merge them again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|