Save and print all data in rec.c/test_rec.c