Posts

Showing posts with the label #dotnet #dotnetframework #dotnettutorilas #csharp #csharpbasics

Reading and Writing Text File using C#.Net

This C# code snippet writes a text file from an internal string then reads it back using StreamReader, StreamWriter, TextReader, and TextWriter. Recommended Reading :  Learn C# Basics  INTRODUCTION:  Here you can information about how to read or write (Unicode) character based data through TextReader and TextWriter. The TextReader and TextWriter are base classes. The StreamReader and StringReader derives from the abstract type TextReader. Similarly the StreamWriter and StringWriter derives from the abstract type TextWriter. Trending This week :  Top 7 New Features in C# 7.0   WRITING — TEXT FILE:   StreamWriter type derives from a base class named TextWriter. This class defines members that allow derived types to write textual data to a given character stream. Let us see some of the main members of the abstract class TextWriter. close() — Closes the Writer and frees any associated resources. Write() — Writes a line to the text ...

C# Basics for Beginners

C# is an object oriented language which is based on Microsoft  Dot Net Framework  .It has been derived from C programming language .C# is mainly suitable for developing web based application .Major parts of Dot net Framework are actually coded in C#. C# was developed as a language that would combine the best features of previously existing Web and Windows Programming language. Read More About C# Basics click the below link Link :  C# Basics for Beginners