Clear the file

text
studio

#1

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


#2

@hemal, How to delete data present in a text file
Hope helps you !

Regards,
Dominic :slight_smile:


#3

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


#4

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

Regards,
Dominic :slight_smile:


#5

@hemal


#6

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


#7

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


#8

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


#9

@hemal, Superb and thanks for the updation !

Regards,
Dominic :slight_smile:


#10

:slight_smile: