title: Predicate to read integers from file in (swi) prolog
body: <p>I was browsing the IO manual pages in swi-prolog and couldn't find a predicate to read integers (or numbers) from a file/stream. Didn't find anything on google either :|</p>
  
  <p>I know how to write one, just wondering if there is something built-in since I guess that it would be faster.</p>