use string functions gets(astring) and puts(astring) to read and write strings including spaces