![]() |
| | #1 |
| Registered User Join Date: Sep 2006
Posts: 52
| How to use "File" library in Console C++? 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 | |
| | #2 |
| Cat without Hat 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 | |
| | #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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |