@Bazzy:
woah..it works! just now I compiled your syntax and it does generate a
output
Then my question is, why aren't the strings showed up in my "oct-24th-test.txt" file?
From your working syntax and your information about
"make sure that you are checking the right file ( ie: that you are looking in the program working directory )"
I checked my "oct-24th" project folder, previously I created my own "oct-24th-test.txt" file in
\Visual Studio 2010\Projects\oct-24th
but the truth is, from my previous 'ofstream syntax' (to create output file) the program wrote the "oct-24th-test.txt" in
\Visual Studio 2010\Projects\oct-24th\oct-24th
(So that's why I can't see "This is a line." and "This is another line." string in my "oct-24th-test.txt" file --
I mean, yes, please make sure that you are pointing or accessing the right file (including it's path))
So the problem has solved, and from now on I can continue doing my project
Thanks a lot Bazzy