using fgets and fputs

using fgets and fputs

using fgets and fputs