C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-16-2008, 08:55 AM   #1
Registered User
 
Join Date: Jun 2008
Posts: 1
Beginner Question - Linking a data file

I've just begun to teach myself C++ and am using the DevC++ compiler. I've been trying to discover how to build and link a data file to a C++ program (the program calc's gross tonnage of a seagoing vessel) in DevC. Their website is not helping me. Can anyone here point me in the correct direction or give me a clue as to how I can create a data file???
noiprocs2 is offline   Reply With Quote
Old 06-16-2008, 08:58 AM   #2
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
You create a data file with something along these lines:
Code:
#include <iostream>

...
   std::ostream astream("outfile.txt");
   astream << "This is my data" << std::endl;
--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitmasking Problem mike_g C++ Programming 13 11-08-2007 12:24 AM
Inventory records jsbeckton C Programming 23 06-28-2007 04:14 AM
Please Help Reading Data From A File NickHolmes C Programming 5 05-29-2005 11:24 PM
archive format Nor A Brief History of Cprogramming.com 0 08-05-2003 07:01 PM
what does this mean to you? pkananen C++ Programming 8 02-04-2002 03:58 PM


All times are GMT -6. The time now is 05:23 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22