
Rich Text File (.RTF) -Can't copy multiple .rtf files (VB 6.0 Enterprise)
Thanks for your reply.
The 3rd file is output from programmatically (VB6 exe) combining file1 +
file2. Stringing the files together wont work because the { are not striped
out. I'm getting closer by striping out header { and trailer } -but not
quite there yet.
I think I'm on the right track. I've played with the output in notepad but
still can't find the right format. There may be a relationship between
header and trailer.
Quote:
> It might be because the first file has the EOF character and the rtf
readers
> won't load past EOF.
> > (e.g., COPY temp1.rtf + > temp2.rtf temp3.rtf)
> Is temp3.rtf's file size apparently larger?
> How about loading both files into a string and rewriting all at once?
> > Problem started when I discovered Open Append won't write new .rtf
> data
> > to an existing Rich Text File (.rtf). I tried dealing with the .rtf
> > files separately by creating new (Output) .rtf files then writing each
to
> a
> > new .rtf file.
> > I confirmed this outside of vb through a DOSPrompt (e.g., COPY
temp1.rtf
> +
> > temp2.rtf temp3.rtf). All results end up the same with only the 1st
file
> > copied. The 2nd .rtf is always ignored.
> > I think, due to the end-of-file marker, I can't copy .rtf file to
another
> > .rtf file.
> > Neither FileCopy or Shell Copy will work (i.e., where problem 1st
began!).
> > Simply put, any ideas how I can append RTF data to an existing .RTF
file?
> > Or better yet, through FileCopy?
> > Thanks.