Matt Rowles
Matt Rowles

Reputation: 8070

Best Way To Reference Current/Working Directory in VB.NET

I am after the one which is most used. A number of ones I have come across are:

I am using it to save a file, for argument sake, "test.txt"

Upvotes: 0

Views: 1298

Answers (1)

3Dave
3Dave

Reputation: 29051

I may be oversimplifying, but if you want to save something in the folder where your app is running, just omit the path.

call MyObj.SaveTo("test.txt")

Upvotes: 2

Related Questions