|
From: Ioannis V. <no...@ya...> - 2000-11-17 14:21:57
|
If you want to read in ASCII format use fgets(). If you want to read in raw data use fread(). > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of blalock > Sent: Wednesday, November 15, 2000 9:37 PM > To: dev...@li... > Subject: [Dev-C++] newbie question > > > Can I format input from a file inside of the file or do I have to do > this through code? I am trying to import characters into my program as > they are in the file. when I use fscanf it ignores the spaces. I was > wondering if there is a way to essentially cut and paste from a file to > my program including the spaces and returns. To explain, I am trying to > import ascii art into the introduction portion of my program, so the > input file needs to be formatted exactly as it is spaces and all. I am > taking a class in C, very new at this, so I am playing with it..... > thanks in advance for the reply. > Blalock > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com |