home *** CD-ROM | disk | FTP | other *** search
- #include <LEDA/basic.h>
-
- main()
- {
-
- file_istream IN(read_string("input from file: "));
-
- string s1 = read_string("replace all s1 = ");
- newline;
- string s2 = read_string("by s2 = ");
-
- string s3 = read_string("delete all s3 = ");
-
- while (IN)
- { string s;
- s.read_line(IN);
- s = s.replace_all(s1,s2);
- s = s.del_all(s3);
- cout << s.format("%s\n");
- }
- newline;
- }
-