If empty return empties
Copy iostream to import both header and data