On Fri, 16 Jul 2021, Sven Schreiber wrote:
Hi,
I'm struggling with the problem that the join command and also the
readfile() function claim my file is not there. In both cases I'm giving
the absolute path as input. I've checked "visually" that the file exists.
I'm wondering whether the fact that the path has a space in it (together
with Windows-backslashes) may be a reason for the problem. (The path is
in a string variable 'fname' which I then pass to the join cmd as
"@fname" to have it properly quoted, and plainly as readfile(fname) to
the function.)
I can do more testing and narrowing-down later, but maybe someone
already has an idea.
What if you declare the string with double-quotes? As in
string fname = sprintf("\"C:\\My path\\foo.gdt\"")
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------