What I mean by this question is when you need to store or pass a URL, using a string is probably bad practice, and using a URI type would be a better approach. However, it is so difficult to make complex things more complex and bloated.
So, if I am going to write to a file on disk, am I passing him a string as the file name and file path, or is there a better type that is better suited for this requirement?
Does this code seem awkward, and error prone? I will also need to check if this is a valid file name, if the row contains data, and the list goes on.
private void SaveFile (line fileNameAndPath) {// Normal material for saving the file}
source
share