V
V
Vignore2017-08-25 11:12:03
.NET
Vignore, 2017-08-25 11:12:03

Where does File.Exists(path) go without the full path?

There is a certain dll which I pick up in wcf to service.
The dll has a configuration method where you need to specify the path to the file.
Because the service will lie somewhere on the server, I cannot specify the full path there.
And when you specify path = "nameFile", he does not find it, no matter where I put this nameFile.
Question: where does File.Exists(path) look if path is not the full path to the file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2017-08-25
@Griboks

Relative to the working directory of the program.

S
sim3x, 2017-08-25
@sim3x

https://msdn.microsoft.com/en-us/library/system.io...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question