+ 1

How i can use files in this programme

I can't find from where we open file

16th Apr 2019, 4:48 PM
Manal
Manal - avatar
7 ответов
+ 1
sneeze sometimes in switch function their is questions need files like this (Write a C++ program that prompts the user to enter two words. The program will search for the first word in text file with name article.txt and replace it with the second word and write the modified text on another file named modified.txt. It will print number of replaces on console screen.) and their is another cases need files .
16th Apr 2019, 7:20 PM
Manal
Manal - avatar
+ 1
Yes , I use visual studio and I see that I can open files in it , so i wondered if this programme have this advantage too .
16th Apr 2019, 7:35 PM
Manal
Manal - avatar
+ 1
Yes I know how I can do this , thank you very much for your help :)
16th Apr 2019, 7:44 PM
Manal
Manal - avatar
0
Where do you want to open a file ? What is the content of the file ?
16th Apr 2019, 5:40 PM
sneeze
sneeze - avatar
0
Do you use the playground or do you have access to visual studio or other IDE.
16th Apr 2019, 7:25 PM
sneeze
sneeze - avatar
0
That's great. You cannot use files on the sololearn playground. Luckily you have access to visual studio. What you want to do can be done in c++. So you want to know how to read the content of a text file in c++
16th Apr 2019, 7:37 PM
sneeze
sneeze - avatar
0
Please have a look at this link http://www.cplusplus.com/doc/tutorial/files/ Keep coding, Keep asking
16th Apr 2019, 7:39 PM
sneeze
sneeze - avatar