Reads all available contents of the stream s to an i/o device, replacing its current contents and resetting the file pointer to the start