Thread: parse file q
View Single Post
Old 08-30-2003, 05:00 AM  
FTPServerTools
Senior Member
 
Join Date: Sep 2002
Posts: 543
Default

Code:
FILE *f;
char buf[128],*s=NULL;
f=fopen("filename","rb");
while (!fgets(f,127,buf)){
  s=strtok(buf,"\r\n");
  while (s){
    s=strtok(NULL,"\r\n");
    //got line part starting with s
  }
}
FTPServerTools is offline