Writing data to a Point Cloud Data (PCD) file