Converting the relative file path to full path

I'm doing this as the input has to be the full path to file, as a
string.