Need Help with Streaming files

I am learning input and output of files,i use Dev C++
when i run code,hence,it doesn't stream text into File
here is the code:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <fstream>
using namespace std;

int main(){
	ofstream mystream;
	mystream.open("myfile.txt,",ios::out);
	mystream<<"Example text";
	mystream.close();
	return 0;
}

And yes,i have created file myfile.txt and also both,program and txt file are in same directory.can anyone help me?
"myfile.txt,"

Whats that coma doing there after txt? Pretty sure thats your problem :D
oh damn
lol thanks for note and help!
i will be looking more deep next time >_<
Topic archived. No new replies allowed.