Here is the code to read a text file from disk one line at a time into a string. This code ensures the file exists and properly closes the file if an exception occurs. In this article we will see the Saving, Reading, Uploading and Downloading mechanism of CSV files and Text files using C ASP.NET. This article is mainly focused on reading text files efficiently. It includes log, csv, tab delimited, fixed length files, etc. Instead of using StreamReader(.NET. You can read from (or write to) a text file using the Open statement, Close statement and various other statements for actually reading/writing. The Open statement. C / VB.NET / C++ CLI: Create, read and write MS Access (mdb, accdb), MySQL, SQL Server, SQL Server Compact and SQLite databases This article demonstrates different ways to create a text file in C. Join the Stack Overflow community to: Ask programming questions Answer and help your peers Get recognized for your expertise Hi I'm trying to find out how to read/write to the extended file properties in C e.g. Comment, Bit Rate, Date Accessed, Category etc that you can see in Windows. How To Write Binary Files to the Browser Using ASP.NET and Visual C .NET Using itextsharp dll one can extract all the text of a PDF file page wise i.e. contents of a specific page or page contents from the first page to the last, but I.