1 Reply Latest reply on Jan 18, 2007 5:13 AM by Newsgroup_User

    Save txt with FileIO problems

    Level 7
      I'm trying to save the contents of a field member (all short sentences each
      on a separate line) into a txt-file. The file is created OK, but somehow,
      all these short sentences are placed one after the other; they're no longer
      on a separate line.

      Saving the text as an RTF solves the issue, but I really want to save it as
      a TXT... Is there a way to do this? (using D8.5)


        • 1. Re: Save txt with FileIO problems
          Level 7
          Hi,

          it probably depends on the OS (or which text editor) you check the file in.
          Director uses only the char(13) (Carriage Return of CR) as a new line
          char. Dos/windows refers the char(13) char(10) (Carriage Return Line
          Feed or CRLF) combo.
          ( http://director-online.com/dougwiki/index.php/RETURN)

          So, either use a different text editor or convert all char(13) to
          char(13) char(10). cr => crlf

          See: http://www.mediamacros.com/item/item-950637747/ (amongst others)
          for a how to.

          Manno


          Somnifer wrote:
          > I'm trying to save the contents of a field member (all short sentences each
          > on a separate line) into a txt-file. The file is created OK, but somehow,
          > all these short sentences are placed one after the other; they're no longer
          > on a separate line.
          >
          > Saving the text as an RTF solves the issue, but I really want to save it as
          > a TXT... Is there a way to do this? (using D8.5)
          >
          >

          --
          ----------
          Manno Bult
          manno@xs4all.nl