Clear the file

I have appended the DocumentAppend text. Now the query is, how should i clear thqt document? Once it’s done

1 Like

@hemal, How to delete data present in a text file - #12 by andrzej.kniola
Hope helps you !

Regards,
Dominic :slight_smile:

That’s I had but it’s giving me the error like Archive file cannot be size 0

@hemal, I could do it ! Its emptying the file perfectly.

Regards,
Dominic :slight_smile:

@hemal

that’s the same. What’s extra? you just added message box ! :smiley: actually I am clearing that file but then again when i use it i am getting the error like, Archive file cannot be size 0

@599712 true. Even I was doing the same and it’s working too. But the thing is, I am unable to use it again.

Hello,

I have done it. I am appending each line in the document and sending a mail. After completed that, I am deleting that file and when the process starts again, I check if file path exists or not.

Thanks for your help :slight_smile:

Regards,
Hemal

3 Likes

@hemal, Superb and thanks for the updation !

Regards,
Dominic :slight_smile:

:slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.