suppose i have a text file named "input.txt" with these :
Objective:Code:.......garbage data.....http://mysite.html?id=1234&n=john_me.........garbage data....... http://mysite.html?id=56482&n=john_me.........g data...
1.Parse all url and store in output file.
2.Parse id no along regarding url in that same file.
i tried this:[plz say what to modify or add]
what to do to parse these url and stose in an array.?? actually i am syntax less here...:[Code:ifstream fin("input.txt",ios::in); if(!fin){cout<<"cant open input.txt"; return 1;} fin.unsetf(ios::skipws); int k;char ch; for(int i=0; !fin.eof() ;i++) { fin>>ch; if(ch=='h' && fin.peek()=='h'.....) then what? }