title: File IO and the buffer
body: <p>I want to read numbers from a file, but when I do is everything read from the file put into the buffer? Or only 1 number? File would contain <code>5 6 7 10 9</code></p>
  
  <p>This would be what I'm using to read from the file: (EASy68K program)</p>
  
  <pre><code>    ORG    $1000
  START:                  ; first instruction of program
  
      lea     filename,a1
      move #52,d0
      trap #15
  
      lea     buffer,a1
      move    #datasize,d2    # bytes to read
      move    #53,d0          read from file
      trap    #15
  
      SIMHALT             ; halt simulator
  
  filename    dc.b    'test1.txt',0
  
      END    START        ; last line of source
  </code></pre>