Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: fscanf question Message-ID: <1989Dec28.053300.6828@virtech.uucp> Date: 28 Dec 89 05:33:00 GMT References: <6983@ohstpy.mps.ohio-state.edu> Organization: Virtual Technologies Inc. Lines: 12 In article <6983@ohstpy.mps.ohio-state.edu>, SMITHJ@ohstpy.mps.ohio-state.edu writes: > fscanf(stream,"%-30s %-30s",instr1,instr2); ^ ^ these are the problem. (F)scanf does not understand the left hand justification indicator (-). Delete the dashes and it will work as you want it to. -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+