file-path

Is there a way of making strings file-path safe in c#?

My program will take arbitrary strings from the internet and use them for file names. Is there a simple way to remove the bad characters from these strings or do I need to write a custom function for this? ...

Is file path a url?

I have a variable in code that can have file path or url as value. Examples: http://someDomain/someFile.dat file://c:\files\someFile.dat c:\files\someFile.dat So there are two ways to represent a file and I can't ignore any of them. What is the correct name for such a variable: path, url, location? I'm using a 3rd party api so I can'...