string fullFile; private void Merge() { System.IO.StreamWriter data = new System.IO.StreamWriter(@"c:\" + Somevariable + @"\" + Somevariable + ".txt"); for (int i = 1; i < 152; i++) { try { string[] fullfile = System.IO.File.ReadAllLines(@"c:\" + Somevariable+ @"\h" + i + ".7.txt"); int length = fullfile.Length; for (int j = 0; j <= length; j++) { fullFile = fullFile+fullfile[j] + "\n"; // this string } } catch { i = 153; } } data.WriteLine(fullFile); data.Close(); }
catch { i = 153; }
void MergeFiles(string outputFileName, params string[] inputFileNames) {/* ... */}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)