+ 1
How i can use files in this programme
I can't find from where we open file
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 .
+ 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 .
+ 1
Yes I know how I can do this , thank you very much for your help :)
0
Where do you want to open a file ? What is the content of the file ?
0
Do you use the playground or do you have access to visual studio or other IDE.
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++
0
Please have a look at this link
http://www.cplusplus.com/doc/tutorial/files/
Keep coding, Keep asking