C Board  

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

Reply
 
LinkBack Thread Tools Display Modes
Old 10-19-2006, 04:39 PM   #1
Registered User
 
Join Date: Sep 2006
Posts: 52
How to use "File" library in Console C++?

I want to input and output file.I used some declarations are
using namespace System;
using namespace System.IO;
but compiler don't understand about them.Please show me way to using them
I want to use "StreamWriter" function to input and output files...
zaracattle is offline   Reply With Quote
Old 10-19-2006, 04:43 PM   #2
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
These things don't exist in C++. Use iostreams instead, in particular std:fstream.

You're looking for C++/CLI functionality. Create a Managed or .Net project for that.

But I recommend you stay with C++.

On a second look, this actually seems to be C# code you have there. Even worse! There's a different forum for that here.
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Old 10-20-2006, 10:32 AM   #3
Anti-Poster
 
Join Date: Feb 2002
Posts: 1,224
Code:
using System;
using System.IO;
__________________
Rule #1: Every rule has exceptions
pianorain is offline   Reply With Quote
Old 10-20-2006, 05:26 PM   #4
Registered User
 
Join Date: Sep 2006
Posts: 52
I'm using Visual Studio C++ Express Edition.In MSDN document,these codes are in part of C++,not in C#...
zaracattle is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker errors in VC++ 2005 C+/- C++ Programming 0 05-18-2007 07:42 AM
Full Screen Console St0rmTroop3er C++ Programming 1 09-26-2005 09:59 PM
Problems with a simple console game DZeek C++ Programming 9 03-06-2005 02:02 PM
Console Functions Help Artist_of_dream C++ Programming 9 12-04-2004 03:44 AM
Linux console window questions GaPe Linux Programming 1 12-28-2002 12:18 PM


All times are GMT -6. The time now is 12:00 AM.


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