title: How can I make the system call write() print to the screen?
body: <p>For my OS class I'm supposed to implement Linux's cat using only system calls (no printf)</p>
  
  <p>Reading <a href="http://www.cplusplus.com/reference/iostream/ostream/write/" rel="noreferrer">this reference</a> I found it being used to print to a file. I guess I should manipulate ofstream.</p>
  
  <p>In the example appears: <code>ofstream outfile ("new.txt",ofstream::binary);</code></p>
  
  <p>How can I make it write to the screen?</p>
  
  <p><strong>EDIT: I realized this write() is part of iostream library, is this the same as the int write (int fd, char *buf , int size) system call?</strong></p>