Is there a better way to concatenate the path and fname to get full path?
Anyway, the question is that the folder "output_file" does not exist and thus the sub-folder "output" also does not exist. Yet, the program ends without generating any error or throwing an exception. Why?
If I change the path to ".\\", then it works and creates the file. However, I would expect that when I call the open file function using non-existance directory, it should complain as no output is created and nothing is written.