Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug?
#1
If a file has spaces in it's path AND the filename is read from COMMAND$, OPEN returns an error
Code:
if open(command$ for input as 1)then
  ? "Can't open file";command$;"<"
else
  ? "OK"
end if
curiously the error message prints correctly the path.

If the path-having-spaces is hard-coded into the program , OPEN works!!!
Antoni
Reply
#2
Found the reason, COMMAND$ is returning the path surrounded by quotes, open does'nt like them...

I think those quotes should not be there....



EDIT: NEVERMIND: It's Windows who passes the quotes...FB is doing ok!
Antoni
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)