I have a way like this:
/home/user/download/ And a file, for example, file.txt . Surely there should be platform-independent standard methods for combining the path and file name. Simple line addition is not effective, because on the way to the file there may not be the last slash and in different OS slashes in different directions.