Forum
Keyword

DELETING AND CREATING FILE

  • Atitotito
  • Atitotito's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Karma: -1
  • Thank you received: 0

Atitotito created the topic: DELETING AND CREATING FILE

GOOD EVENING,
PLEASE HOW DO I CHECK IF A FILE EXISTS, DELETE IT THEN RE-CREATE
#19531

Please Log in or Create an account to join the conversation.

  • Posts: 2836
  • Karma: 509
  • Thank you received: 637

jpb replied the topic: DELETING AND CREATING FILE

What kind of file ?

Some people feel the rain - others just get wet (Bob Marley)
#19532

Please Log in or Create an account to join the conversation.

  • Atitotito
  • Atitotito's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Karma: -1
  • Thank you received: 0

Atitotito replied the topic: DELETING AND CREATING FILE

a text file. I am generating a report.. I want to check if the file exists it should be deleted or overwritten
#19536

Please Log in or Create an account to join the conversation.

  • Posts: 2836
  • Karma: 509
  • Thank you received: 637

jpb replied the topic: DELETING AND CREATING FILE

So you should use OPENSEQ.
Overwriting can be achieved by using WEOFSEQ as first statement after the open.

Look HERE for an example.

Some people feel the rain - others just get wet (Bob Marley)
#19537

Please Log in or Create an account to join the conversation.

Time to create page: 0.125 seconds