Connecting Tech Pros Worldwide Help | Site Map

help. how to blank off when info from file...

  #1  
Old July 19th, 2005, 08:11 PM
Ristar
Guest
 
Posts: n/a

#include <stdio.h>

#include <conio.h>

#include <string.h>

#include <stdlib.h>

#include <windows.h>

#define file1 "data.txt"



FILE *read;

char a[12]="A1";

char b[4]="A2";

char c[4]="A3";

char d[4]="A4";

char e[4]="A5";



int main()

{

read=fopen(file1,"r");

if(read==NULL)

{

system("cls");

printf("Cannot Open File");

getch();

}else

{

/*need help here



if there is "A1" "A2" "A3" and "A4" in the data.txt, then make
the program show only "A5" in its correct position. please edit
it so that it can blank off any one string that appears in the
data.txt and show all the strings in its correct positions.





*/

printf("%s %s %s %s %s",a,b,c,d,e);

}



getch();

}


--
Posted via http://dbforums.com
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_python help! treelife answers 1 February 16th, 2006 05:25 PM
Access expoert reports to PDF using PDF writer 6.0 issues Grasshopper answers 11 November 13th, 2005 07:08 AM
How do I create pdf reports from Access? dog answers 7 November 13th, 2005 07:06 AM
connection string causes blank page Paul Robinson answers 6 July 19th, 2005 01:11 PM