Loading ...
Sorry, an error occurred while loading the content.
 

appendToFile

Expand Messages
  • Manuel
    ^!AppendToFile FileName AnyText Appends the specified text to the end of a disk file. A new file is created if FileName does not exist. How can I append a
    Message 1 of 2 , Jan 28, 2001
      ^!AppendToFile "FileName" AnyText
      Appends the specified text to the end of a disk file. A new file is
      created if FileName does not exist.

      How can I append a new line to file?


      ^!Set %c%=^$GetSelection$
      ^!Set %f%=^$GetDocName$
      ^!AppendToFile "C:\BD\0-MANUALES\citas-0.ntp" ^%c ^P ^%f

      but, ^P don't work. Where is my mistake?

      Thanks.
      ---
      Manuel
      manuel123@...
      - Cursos por email:Windows,Navegador,Outlook,Html,Word,Excel,Access
      También para ciegos.
      http://manuel123.8m.com
    • Manuel
      (Cita de Manuel) ... SOLUTION !AppendToFile C: BD 0-MANUALES citas-0.ntp ^%c ^%nl% ^%f Good night! ... Manuel manuel123@mail.com - Cursos por
      Message 2 of 2 , Jan 29, 2001
        (Cita de Manuel)
        >^%nl% is a preset variable that makes a new line.
        >How can I append a new line to file?
        >
        >^!Set %c%=^$GetSelection$
        >^!Set %f%=^$GetDocName$
        >^!AppendToFile "C:\BD\0-MANUALES\citas-0.ntp" ^%c ^P ^%f

        >but, ^P don't work. Where is my mistake?
        >
        >Some time later, well,
        >One hour later. I have the solution.

        SOLUTION
        !AppendToFile "C:\BD\0-MANUALES\citas-0.ntp" ^%c ^%nl% ^%f

        Good night!

        ---
        Manuel
        manuel123@...
        - Cursos por email:Windows,Navegador,Outlook,Html,Word,Excel,Access
        También para ciegos.
        http://manuel123.8m.com
      Your message has been successfully submitted and would be delivered to recipients shortly.