Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!hpda!hpihoah!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.lang.c Subject: Re: QUES: fprintf - include white space Message-ID: <2550024@hpisod2.HP.COM> Date: Sat, 1-Aug-87 23:55:14 EDT Article-I.D.: hpisod2.2550024 Posted: Sat Aug 1 23:55:14 1987 Date-Received: Tue, 4-Aug-87 00:49:55 EDT References: <11084@decwrl.DEC.COM> Organization: Hewlett Packard, Cupertino Lines: 11 > My question concerns the function fscanf() on the vax. How do I > use fscanf() in such a way that it bring in the specified number of > characters including white space (more importantly ' '), with out > terminating the input to each field because of the white space. Well, you could use fread(buf, 10, 1, fp) to read 10 characters. If you need to scan other stuff before and/or after that in the same call, you could use "%10c" for a format. Dave Decot hpda!decot