Announcement

Collapse
No announcement yet.

File I/O

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File I/O

    Is there a function to delete an existing file? Or alternately, to delete the contents. Looked through the Help, no help.

  • #2
    Solution...

    Just use the "wt" parameter for the f.open command. This will create and overwrite the existing file.

    Brad
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Thanks. That solved my problem.

      if (f_Log.exists())
      f_Log.open("wt");
      f_Log.open("at");
      Last edited by Gavishti; 01-29-2004, 09:41 AM.

      Comment


      • #4
        Same question different problem. This time I actually want to delete a specific file. Not just overwrite it. Is there a function to do this?

        Thanks.

        Comment


        • #5
          Hello Gavishti,

          I don't think we have a delete method enabled for the file object. I sent a message to development to find out for sure. I'll let you know what I find out.
          Jason K.
          Project Manager
          eSignal - an Interactive Data company

          EFS KnowledgeBase
          JavaScript for EFS Video Series
          EFS Beginner Tutorial Series
          EFS Glossary
          Custom EFS Development Policy

          New User Orientation

          Comment

          Working...
          X