Write Text File Snippets


04 May, 2013   

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

26 July, 2012   

Java code example to append text to file in Java

Essentially the trick is to draw the panel/frame/etc. into a BufferedImage and use the ImageIO class to write it to an image file.

19 February, 2011   

Detect Internet Explorer

23 September, 2011   

An example Dates with the Ordinal Suffix . Below is the code that will do this.

This example has an ordinal suffix: Sunday 15th July

23 February, 2012   

XML Code to display XML data in an HTML table

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

04 May, 2013   

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

Asp code example to show the date a file was created

19 July, 2012   

PHP code to encode any email address into HTML entities so that spam bots do not find it

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

13 October, 2015   

This function removes all duplicated lines of the given text file.

19 October, 2011   

An example to check Weekend

20 December, 2011   

The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs.

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.

03 October, 2013   

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

20 December, 2011   

The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 5. i will increase by 1 each time the loop runs:

18 September, 2013   

PHP example for listing directory contents

Jave code for PDF Generation using iText JAR