From: "Tom" Newsgroups: comp.os.msdos.djgpp Subject: Finding and replacing text... Date: Thu, 30 Sep 1999 16:25:33 -0400 Lines: 14 Message-ID: <7t0gjc$h4h$1@autumn.news.rcn.net> X-Trace: NzAWDbDH9NYHpNzJyrhCu95V4xg8QWUpIoTQbnqFdLyC+r94UmMekw== X-Complaints-To: abuse AT rcn DOT com NNTP-Posting-Date: 30 Sep 1999 20:18:52 GMT X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MSMail-Priority: Normal X-Priority: 3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am having some trouble with reading text files. I am using ifstream inputfile("text.txt"); to read from a file called text.txt which has a bunch of file paths in it. The only problem is that the string has the directories using the backslash instead of the forward slash. My program will not read the backward slash. Everything works fine when the forward slash is used. Is there function that will search through a string and change "\" to "/". If not, I could just use a function that replaces one character with another. Thanks. Tom