![]() Using (FileStream fs = File.Create(path))ĪddText(fs, "\r\nand this is on a new line") ĪddText(fs, "\r\n\r\nThe following is a subset of characters:\r\n") String path = Delete the file if it exists. While ( fs->Read( b, 0, b->Length ) > 0 )Ĭonsole::WriteLine( temp->GetString( b ) ) ![]() UTF8Encoding^ temp = gcnew UTF8Encoding( true ) Void AddText( FileStream^ fs, String^ value )Īrray^info = (gcnew UTF8Encoding( true ))->GetBytes( value ) ĪddText( fs, "This is some more text," ) ĪddText( fs, "\r\nand this is on a new line" ) ĪddText( fs, "\r\n\r\nThe following is a subset of characters:\r\n" ) įor ( int i = 1 i ^b = gcnew array(1024) The following example demonstrates some of the FileStream constructors.
0 Comments
Leave a Reply. |