Code for Reading and writing from a file in c#?
Answer / sabina
StreamWriter and StreamReader can be used to read and write
unicode chars to a file.
TextWriter adn TextReader are abstract base class from
which SW and SR inherits.
Stream is an abstract base class supports reading and
writing bytes into a file(arrays -> file) (file -> arrays)
FileStream exposes the stream ard the file
BinaryStream is used to write and read primitive
datatypes/encoded strings to files.
to encode string to bytes
byte[] b = new UTF8Encoding(true).GetBytes(string);
to decode string from bytes
String str = new UTF8Encodeing(true).GetString(b);
Is This Answer Correct ? | 0 Yes | 0 No |
Code for Searching for Multiple Matches with the MatchCollection Class?
c# code to Count number of 1's in a given range of integer (0 to n)
Code for Reading and writing from a file?
program to check if a number is "perfect number".
program for addition of fraction(M/N + P/Q = Y/Z)
How to Create a Treeview Menu in ASP.NET with C#?
how to change password in .net with c # with ado.net and also SQL server 2008 change password
How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)
How to Link Different Data Sources Together?
program for straight line(y=mx+c)
working with arrays
how do i copy textbox contents of 1 form to another form