+ 3

How to open files and write something in them using C++?

For some reason when I tried to do that how the C++ course said, it didn't work. Does anybody know how to do that?

6th Nov 2017, 1:52 PM
DeltaTick
DeltaTick - avatar
10 odpowiedzi
+ 3
I want to make a file on my computer and store some text in it, such as "This is a file that I made in C++."
6th Nov 2017, 2:20 PM
DeltaTick
DeltaTick - avatar
+ 3
I was learning this in the C++ Course on Sololearn but it didn't work when I tried doing it in Microsoft Visual C++ 2010 on my desktop.
6th Nov 2017, 2:23 PM
DeltaTick
DeltaTick - avatar
+ 3
Yes, I'm very sure.
6th Nov 2017, 2:25 PM
DeltaTick
DeltaTick - avatar
+ 3
I heard that Microsoft Visual C++ is the best out there and also I've used it for a long time already so it works for me.
6th Nov 2017, 2:27 PM
DeltaTick
DeltaTick - avatar
+ 3
I'll try to... Are you still going to be in this thread?
6th Nov 2017, 2:42 PM
DeltaTick
DeltaTick - avatar
+ 1
Please elaborate your question a bit so that others can understand.
6th Nov 2017, 2:12 PM
Harsh
Harsh - avatar
+ 1
Are you sure saved the file with extension .cpp?
6th Nov 2017, 2:25 PM
Harsh
Harsh - avatar
+ 1
Can you post something like a screenshot or maybe copy paste the whole error?
6th Nov 2017, 2:29 PM
Harsh
Harsh - avatar
0
Also use an IDE like Dev C++, Netbeans etc.
6th Nov 2017, 2:25 PM
Harsh
Harsh - avatar