Write Gvectors to file