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?










share|improve this question




























    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?










    share|improve this question


























      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?










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 at 18:50









      GhostCat

      86.4k1683142




      86.4k1683142










      asked Nov 8 at 1:39









      Cathy

      1




      1
























          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.






          share|improve this answer





















          • 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











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          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

























          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.






          share|improve this answer





















          • 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















          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.






          share|improve this answer





















          • 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













          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.






          share|improve this answer












          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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


















          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini