Please post new subjects to a new thread (topic) - this is unrelated to the date questions.
You should be able to create the first row as desired, using the File bizcomp (is the issue a header line? the File Bizcomp now has header line processing capability). If you are trying to make a copy of the first file (or edit an existing file) replacing the first line, you have a couple of options. The File BC provides read, write, and append operations (no update or indexing into a file).
You could write a
Functoid that replaces the first line (input filename and newFirstLine - using java file operations).
You could also use the File Bizcomp to read the input file and a second File Bizcomp to write the output file. You can write the new first line, and then write out the existing content for the remaining lines. (You can use a
xa:switch/xa:case to determine the first line based on some content or a line count assigned when you read the file in the first Bizcomp.) This is less effcient than the functoid approach because the file will be read into
XML by the first Bizcomp and then the second Bizcomp will iterate over the XML to write out the new contents; but that may be sufficient depending on your performance requirements.