How to cleare all Texts To txt File using Vb.Net ?

Shahab a 261 Reputation points
2022-10-02T04:40:56.553+00:00

Hello Everyone

I want to Cleare all Text and then write a new one in User.txt File
i used this codes
But it doesn't work properly
Please help my
Thanks all

246620-1.jpg

Developer technologies | VB
0 comments No comments
{count} votes

Answer accepted by question author
  1. Viorel 125.7K Reputation points
    2022-10-02T07:34:31.307+00:00

    Use False instead of True if you want to clear the file before writing a new text. (You can remove the lines 3, 4 and 5).

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Shahab a 261 Reputation points
    2022-10-03T09:00:24.917+00:00

    thanks dear for your help

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.