| | |
creat file for data in output folder
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Tip, use #include <fstream>
, wont do your homework, but a tip i know is welcome
its prety easy to use fstream, you can then call the classes you need to do the work you are looking for.
, wont do your homework, but a tip i know is welcomeits prety easy to use fstream, you can then call the classes you need to do the work you are looking for.
void main() { printf(" w00t "); return 0; }
José Luis Chafardet Grimaldi
Freelance Website Developer / IT Security Consultant
www.chafardet.com
http://valid.x86-secret.com/show_oc.php?id=354137
José Luis Chafardet Grimaldi
Freelance Website Developer / IT Security Consultant
www.chafardet.com
http://valid.x86-secret.com/show_oc.php?id=354137
C++ Syntax (Toggle Plain Text)
#include <fstream> #include <iostream> using namespace std; int main() { int a = 1; fstream yourFile; yourFile.open("log.txt"); yourFile >> a; yourFile.close(); return 0; }
Something like that. Maybe the ">>" needs to be "<<".
Last edited by cscgal; Sep 5th, 2008 at 2:06 am. Reason: Fixed code tags
![]() |
Similar Threads
- SpeedUp Your Window XP Never Than Before (Windows tips 'n' tweaks)
Other Threads in the C++ Forum
- Previous Thread: Problem with DLL i'm coding for a game
- Next Thread: Gecko SDK Mozilla Plugin Development - Why can´t use it on DEV C++???
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






