Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!att!cbnewsj!tortica From: tortica@cbnewsj.ATT.COM (john.dalton) Newsgroups: comp.lang.c Subject: io question Keywords: implementing the newline.... Message-ID: <4186@cbnewsj.ATT.COM> Date: 14 Mar 90 16:34:14 GMT Distribution: usa Organization: AT&T Bell Laboratories Lines: 30 ...i hope i am posting to the correct group...excuse this if i'm not.. this i hope is a relatively esay question. i wrote a c program, of which i am reading input and writing output to a file. the problem i am having is, i need to have the scanf reconize either a return or newline form the keyboard. simple enough, i also need the output to insert the space(as this is what the scanf will take (hopefully), it as). in the output file. example: printf("\nEnter data.....for %s ",name); scanf("%s",epas); I HIT RETURN HERE AND IT GOES ON TO THE NEXT QUESTION.... printf("\nEnter data.....for %s ",name2); scanf("%s",epas2); Your help is more then appreciated.....THANKS... email will be best....thanks in advanced. john D.