file.append fails to aggregate .rtf files
up vote
0
down vote
favorite
I have used file.create and file.append successfully to aggregate multiple .txt files. When I try it with .rtf files, however, I get a larger rtf file that only shows the contents of the first .rtf of many to be aggregated.
So I have 5 .rtf files, for example. dirFiles is the list of names to be aggregated:
file.create(fileCollection_r)
file.append(fileCollection_r,dirFiles_r)
Is this a bug, and I would I report it?
How can I aggregate multiple .rtf files?
r filesystems rtf
add a comment |
up vote
0
down vote
favorite
I have used file.create and file.append successfully to aggregate multiple .txt files. When I try it with .rtf files, however, I get a larger rtf file that only shows the contents of the first .rtf of many to be aggregated.
So I have 5 .rtf files, for example. dirFiles is the list of names to be aggregated:
file.create(fileCollection_r)
file.append(fileCollection_r,dirFiles_r)
Is this a bug, and I would I report it?
How can I aggregate multiple .rtf files?
r filesystems rtf
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have used file.create and file.append successfully to aggregate multiple .txt files. When I try it with .rtf files, however, I get a larger rtf file that only shows the contents of the first .rtf of many to be aggregated.
So I have 5 .rtf files, for example. dirFiles is the list of names to be aggregated:
file.create(fileCollection_r)
file.append(fileCollection_r,dirFiles_r)
Is this a bug, and I would I report it?
How can I aggregate multiple .rtf files?
r filesystems rtf
I have used file.create and file.append successfully to aggregate multiple .txt files. When I try it with .rtf files, however, I get a larger rtf file that only shows the contents of the first .rtf of many to be aggregated.
So I have 5 .rtf files, for example. dirFiles is the list of names to be aggregated:
file.create(fileCollection_r)
file.append(fileCollection_r,dirFiles_r)
Is this a bug, and I would I report it?
How can I aggregate multiple .rtf files?
r filesystems rtf
r filesystems rtf
edited Nov 9 at 18:50
GhostCat
86.4k1683142
86.4k1683142
asked Nov 8 at 1:39
Cathy
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
First of all, it is not clear what file.create()
resp. append is doing. You didn't tag for a specific programming language, so that part of your question is really unclear and you need to improve that.
Having said that: RTF files, are in the end, pure text files. They contain formatting information, such as
{rtf1ansiansicpg1252cocoartf1671cocoasubrtf100
{fonttblf0fswissfcharset0 Helvetica;}
{colortbl;red255green255blue255;}
{*expandedcolortbl;;}
So, theoretically, you can just pull that text content from multiple RTF files, and put all of that into a single file.
Thus: simple use a file viewer, such as less
, cat
, or some windows/macos pendant, and A) check the textual content of your single RTF files and B) check out the textual content of the file that you created this way. That will tell you if the pure textual append did work.
But beyond that: it could very well be that the RTF format itself has certain limitations, that simply make it not possible to just append arbitrary RTF file content and end up with something that works as a correct RTF document.
I suspect, as you say, RTF files have a header that interfere with proper appending of files. This is in R. So I'm wondering if there is an R function that appends RTF files, so I don't have to do it.
– Cathy
Nov 9 at 16:42
Well, R is a data / mathematical language. Merging rtf files doesn't exactly sound like it fits that scope...
– GhostCat
Nov 9 at 18:51
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
First of all, it is not clear what file.create()
resp. append is doing. You didn't tag for a specific programming language, so that part of your question is really unclear and you need to improve that.
Having said that: RTF files, are in the end, pure text files. They contain formatting information, such as
{rtf1ansiansicpg1252cocoartf1671cocoasubrtf100
{fonttblf0fswissfcharset0 Helvetica;}
{colortbl;red255green255blue255;}
{*expandedcolortbl;;}
So, theoretically, you can just pull that text content from multiple RTF files, and put all of that into a single file.
Thus: simple use a file viewer, such as less
, cat
, or some windows/macos pendant, and A) check the textual content of your single RTF files and B) check out the textual content of the file that you created this way. That will tell you if the pure textual append did work.
But beyond that: it could very well be that the RTF format itself has certain limitations, that simply make it not possible to just append arbitrary RTF file content and end up with something that works as a correct RTF document.
I suspect, as you say, RTF files have a header that interfere with proper appending of files. This is in R. So I'm wondering if there is an R function that appends RTF files, so I don't have to do it.
– Cathy
Nov 9 at 16:42
Well, R is a data / mathematical language. Merging rtf files doesn't exactly sound like it fits that scope...
– GhostCat
Nov 9 at 18:51
add a comment |
up vote
0
down vote
First of all, it is not clear what file.create()
resp. append is doing. You didn't tag for a specific programming language, so that part of your question is really unclear and you need to improve that.
Having said that: RTF files, are in the end, pure text files. They contain formatting information, such as
{rtf1ansiansicpg1252cocoartf1671cocoasubrtf100
{fonttblf0fswissfcharset0 Helvetica;}
{colortbl;red255green255blue255;}
{*expandedcolortbl;;}
So, theoretically, you can just pull that text content from multiple RTF files, and put all of that into a single file.
Thus: simple use a file viewer, such as less
, cat
, or some windows/macos pendant, and A) check the textual content of your single RTF files and B) check out the textual content of the file that you created this way. That will tell you if the pure textual append did work.
But beyond that: it could very well be that the RTF format itself has certain limitations, that simply make it not possible to just append arbitrary RTF file content and end up with something that works as a correct RTF document.
I suspect, as you say, RTF files have a header that interfere with proper appending of files. This is in R. So I'm wondering if there is an R function that appends RTF files, so I don't have to do it.
– Cathy
Nov 9 at 16:42
Well, R is a data / mathematical language. Merging rtf files doesn't exactly sound like it fits that scope...
– GhostCat
Nov 9 at 18:51
add a comment |
up vote
0
down vote
up vote
0
down vote
First of all, it is not clear what file.create()
resp. append is doing. You didn't tag for a specific programming language, so that part of your question is really unclear and you need to improve that.
Having said that: RTF files, are in the end, pure text files. They contain formatting information, such as
{rtf1ansiansicpg1252cocoartf1671cocoasubrtf100
{fonttblf0fswissfcharset0 Helvetica;}
{colortbl;red255green255blue255;}
{*expandedcolortbl;;}
So, theoretically, you can just pull that text content from multiple RTF files, and put all of that into a single file.
Thus: simple use a file viewer, such as less
, cat
, or some windows/macos pendant, and A) check the textual content of your single RTF files and B) check out the textual content of the file that you created this way. That will tell you if the pure textual append did work.
But beyond that: it could very well be that the RTF format itself has certain limitations, that simply make it not possible to just append arbitrary RTF file content and end up with something that works as a correct RTF document.
First of all, it is not clear what file.create()
resp. append is doing. You didn't tag for a specific programming language, so that part of your question is really unclear and you need to improve that.
Having said that: RTF files, are in the end, pure text files. They contain formatting information, such as
{rtf1ansiansicpg1252cocoartf1671cocoasubrtf100
{fonttblf0fswissfcharset0 Helvetica;}
{colortbl;red255green255blue255;}
{*expandedcolortbl;;}
So, theoretically, you can just pull that text content from multiple RTF files, and put all of that into a single file.
Thus: simple use a file viewer, such as less
, cat
, or some windows/macos pendant, and A) check the textual content of your single RTF files and B) check out the textual content of the file that you created this way. That will tell you if the pure textual append did work.
But beyond that: it could very well be that the RTF format itself has certain limitations, that simply make it not possible to just append arbitrary RTF file content and end up with something that works as a correct RTF document.
answered Nov 8 at 8:27
GhostCat
86.4k1683142
86.4k1683142
I suspect, as you say, RTF files have a header that interfere with proper appending of files. This is in R. So I'm wondering if there is an R function that appends RTF files, so I don't have to do it.
– Cathy
Nov 9 at 16:42
Well, R is a data / mathematical language. Merging rtf files doesn't exactly sound like it fits that scope...
– GhostCat
Nov 9 at 18:51
add a comment |
I suspect, as you say, RTF files have a header that interfere with proper appending of files. This is in R. So I'm wondering if there is an R function that appends RTF files, so I don't have to do it.
– Cathy
Nov 9 at 16:42
Well, R is a data / mathematical language. Merging rtf files doesn't exactly sound like it fits that scope...
– GhostCat
Nov 9 at 18:51
I suspect, as you say, RTF files have a header that interfere with proper appending of files. This is in R. So I'm wondering if there is an R function that appends RTF files, so I don't have to do it.
– Cathy
Nov 9 at 16:42
I suspect, as you say, RTF files have a header that interfere with proper appending of files. This is in R. So I'm wondering if there is an R function that appends RTF files, so I don't have to do it.
– Cathy
Nov 9 at 16:42
Well, R is a data / mathematical language. Merging rtf files doesn't exactly sound like it fits that scope...
– GhostCat
Nov 9 at 18:51
Well, R is a data / mathematical language. Merging rtf files doesn't exactly sound like it fits that scope...
– GhostCat
Nov 9 at 18:51
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53200375%2ffile-append-fails-to-aggregate-rtf-files%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown