Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!dino!news.iastate.edu!du248-16.cc.iastate.edu!niko From: niko@du248-16.cc.iastate.edu (Schuessler Nikolaus E) Newsgroups: comp.sys.mac.programmer Subject: Re: How to write a tab into a file? Message-ID: <1990Sep22.024226.19498@news.iastate.edu> Date: 22 Sep 90 02:42:26 GMT References: <3556@dciem.dciem.dnd.ca> Sender: usenet@news.iastate.edu (USENET News Poster) Reply-To: niko@iastate.edu (Schuessler Nikolaus E) Organization: Iowa State University Lines: 39 In article <3556@dciem.dciem.dnd.ca> juana@dciem.dciem.dnd.ca (Juana Chang) writes: > >Hi. This is probably (hopefully) a simple question. How do you write a >tab into a file. > >What I need to do is this: > >fprintf(File, "...\n", number0, number1, number2, number3); > >where the result in the file would be: > >number0[tab]number1[tab]number2[tab]number3[return] > >and what I need to know is what to put in the format statement of the >fprintf. > >Thanks for any help !!! > >Juana Is '\t' the answer you want? There are others: \b backspace \r cairrage return \f form feed \\ backslash \ddd any character value specified in octal. -- ------------------------------------------------------------------------------ Niko Schuessler "On a two semester mission to engineer where niko@iastate.edu no-one has engineered before.... :-) " ------------------------------------------------------------------------------