Test File Snippets


18 March, 2015   

Example shows how to load a text file

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.

16 November, 2014   

Useful php code to see if the current file is being included or run directly.

07 March, 2011   

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

30 March, 2011   

Need to unzip a file? this function can do that for you. It is reccomended that the functions.php file and the file that exicutes the unzip function are NOT in the same directory as the zip files. unzip ( string $zipfile , string $newLocation ) zipfile gets the name of the current zip file. newLocation is where you want to store all the...

20 July, 2015   

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

Print variables with file and line number for debugging source code

PHP’s rmdir function does not allow the deletion of a folder if it is not empty.

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

Jave code for PDF Generation using iText JAR

23 January, 2012   

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

Here are example test calling a GUI-App through bgExec

18 September, 2013   

PHP example for listing directory contents

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.

How to serve configuration settings from a config.ini file

25 October, 2014   

DBCA is what you need to create a test database in only 5 mins.

13 April, 2011   

Reading a file to a string couldn't be easier than using the file_get_contents() function. Simple pass the name of the file (with path) and optional parameters

30 August, 2015   

Loads the contents of a dir an sorts them by the date of creation.

Java code example to list the Files or Subdirectories in a Directory

Java code for listing files or sub-directories in a directory