Create Text File Snippets

23 January, 2012   

How to create a text file named newtest.txt . here shown an example ASP code

08 February, 2017   

Code example to create a new file under linux

04 May, 2013   

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

09 November, 2017   

Copies Source file to Dest file, preserving modification date. Required units: Classes, SysUtils.

07 March, 2011   

Shows how to create a simple file download by using PHP. The content could also be dynamically generated)

04 May, 2013   

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

10 August, 2011   

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

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

I had to scan a bunch of paper documents (one image per page), and upload them all to a web site that would accept only one PDF file containing the whole set.

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.

16 April, 2011   

There are times when you need to split a large file into several smaller ones (for whatever the purpose is). The following two methods use Delphi TStream objects to break a file into several files with predefined size; and to merge those files back to the original.

18 September, 2013   

PHP example for listing directory contents

Jave code for PDF Generation using iText JAR

Passing in a simple string of text converting it to lowercase and replacing all the spaces with a dash

18 March, 2015   

Example shows how to load a text file

26 July, 2012   

Java code example to append text to file in Java

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.

11 June, 2012   

You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions or use regular expressions to get this info. It was already been created for this purpose.

CSS code example how to custom File Input Styling in WebKit/Blink