Skip navigation

VB.NET: Create Countered File

Many a times, I struggled to find a proper name for the files I want to save by my components.

What if the file already exists?

I should not overwrite existing files etc. etc.

Well, this is a generic function I've been using since a long for getting countered name i.e. <> <>.Extension for saving the files.

This perevents me the problem of overwriting the files that are already present in the target folder.

Hope this will be of use to all of you.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish