Writing Data to File Output Stream