Hi sicarie
It's The first time for me to use visual c++ 2005
i need any code to create file and write & read
i have found FileStream Function
I make sample code While i tryed to compile i got this error:
error C2664: 'void System::IO::Stream::Write(cli::array<Type,dimensio n> ^,int,int)' : cannot convert parameter 1 from 'System::String ^' to 'cli::array<Type,dimension> ^'
with
[
Type=unsigned char,
dimension=1
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
This Code Worked God To write to file:
- StreamWriter^ nfile=File::CreateText("abdo.txt");
-
String^ nam="www.TheScripts.com";
-
nfile->WriteLine(nam);
-
nfile->Close();
i need code to read text file
I hope i could explain