Well you can create a file with specific size using
FileStream.SetLength[
^]
And after writing text to the different files, you can merge them like
store 1st file's text in some variable, 2nd file's text in some other variable and so on...
Then put all variables together and save a new file. Pretty Simple huh ! :)
string path1 = @"D:\file1.txt";
string path2 = @"D:\file2.txt";
string newFilePath = @"D:\file3.txt";
string mergedText = System.IO.File.ReadAllText(path1);
mergedText += "\r\n";
mergedText += System.IO.File.ReadAllText(path2);
using (FileStream fs = new FileStream(newFilePath, FileMode.OpenOrCreate))
{
System.IO.File.WriteAllText(newFilePath, mergedText );
}
-KR