Copy construction in different file formats