Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!gatech!gitpyr!loligo!perrone From: perrone@loligo.uucp (Perrone Ford) Newsgroups: comp.lang.c Subject: Where oh where is my directory Message-ID: <7712@pyr.gatech.EDU> Date: 24 Mar 89 19:21:05 GMT Sender: news@pyr.gatech.EDU Reply-To: perrone@loligo.UUCP (Perrone Ford) Distribution: na Organization: Florida State University Computing Center Lines: 33 Help , Althogh I wa originally developing this program for TurboC I am interested if there is an ANSI way to list the files in the current or another directory. What I am trying to accompish is to read the directory entries into a buffer and then print the buffer out in the middle of a graphics routine In TurboC this would amount to being able to do soemthing like: #include #include /* Maybe curses */ main () { char *listing; listing = system("dir"); initgraph = DETECT; initgraph(&graphdriver, &graphmode); outtext(listing); } however whenever i make the system call, the screen gets trashed whether or not i change the active or visual pages... anyone got any good ideas? %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Perrone T. Ford | Bitnet : PFord@FSU.Bitnet % % arpa: Perrone@loligo.com.fsu.edu | ford@systems.fsu.edu % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%