This is used to mock the fputs & fgets functionlity