Read Text File Snippets


04 May, 2013   

How to read text file and print its contents to the console line by line.

03 October, 2013   

Basic commands for reading a text file one line at a time.

The .NET Framework doesn't support automatic detection of character encoding in the default file I/O methods. This is a quick function that returns True in the specified file is Unicode.

22 March, 2015   

Program shows copying one text file from source location to any other location (destination), plus possibility of changing its name, and also shows many language features in exception handling. This program should be run from the command prompt

The IsFileInUse Delphi function will return true if the file is locked for exclusive access. False is returned if the file does not exist. Code "flow": Two things need to be checked here: A) Is the file a READ-ONLY file? and B) Is the file in use? The main point of the excercise is to check the files attributes for the READ-ONLY...

The IsFileInUse Delphi function will return true if the file is locked for exclusive access. False is returned if the file does not exist. Code "flow": Two things need to be checked here: A) Is the file a READ-ONLY file? and B) Is the file in use? The main point of the excercise is to check the files attributes for the READ-ONLY flag...

This MATLAB code snippet reads in a file stored in the current directory and stores specified lines from the file in a new cell array for manipulation in MATLAB.

Two simple functions to read an write tab seperated files (like CSV files, etc).

04 May, 2013   

C++ code example shown here how to write to text file.

10 August, 2011   

An easy way to send an HTML email with an attachment.

15 November, 2011   

Showing how to read data (an integer) from user.

C++ source code for binary addition using stack in STL

04 December, 2011   

This snippet represents a simple deserializer of some basic Python types.

19 November, 2013   

C++ code example for binary addition using stack in STL

18 September, 2013   

PHP example for listing directory contents

Jave code for PDF Generation using iText JAR

Source code - binary addition using stack in STL

20 July, 2015   

This example shows how to serialize a simple object by using the XmlSerializer.

18 March, 2015   

Example shows how to load a text file

26 July, 2012   

Java code example to append text to file in Java