Erlang - fwrite tilde

Viewed 1258

If a string contains a ~, I can't seem to print that to standard out.

> A = "/.git".
> io:fwrite(A).
/.gitok

> B = "~/.git".
> io:fwrite(B).
** exception error: bad argument
 in function  io:format/3
    called as io:format(<0.50.0>,"~/.git",[])

How can I print a string with tildes to standard out?

3 Answers
Related