title: Common Lisp output file streams SBCL
body: <p>I am on SBCL on debian.</p>
  
  <p>For some reason if I use this:</p>
  
  <pre><code>(with-open-file (output (open #p"file.txt"
                 :direction :output
                 :if-exists :overwrite))
     (format output "test")))
  </code></pre>
  
  <p>Where <code>file.txt</code> is a plain text file.</p>
  
  <p>I get the error</p>
  
  <pre><code>#&lt;SB-SYS:FD-STREAM for "file /home/me/file.txt" {1004A90813}&gt; is not
  a character output stream.
  </code></pre>
  
  <p>Even using <code>:element-type 'character</code> doesn't save me. I haven't been able to get any output stream opened by any method. If I try to use <code>write-bit</code> it says that it isn't a binary output stream. No other write functions work either, such as <code>write-sequence</code> or <code>write-line</code>. They all return this error. How do I fix this?</p>