Cannot open dump wallet file (code-8) Is anybody familiar with this problem using btc qt debug console?

Would like to dump wallet and sweep into electrum.
You need to enclose the filename in quotes.
eg:
dumpwallet &quot;C:\output.txt&quot;

As opposed to:
dumpwallet C:\output.txt      (wrong)