write then read GI file