View articles in ‘Files’ Category


files

Get width and height of a GIF image file

This function returns the width and height of a gif image file.

files

Get width and height of a JPEG image file

This function returns the width and height of a jpeg image file.

files

Search a directory tree for a specified file

Function returns -1 if the filename was not found, and returns the path if the file was found

files

Check if a file’s volume is NTFS

A function that returns true if a file's volume is NTFS, or false if not.

files

Read a certain line number from a text file

How to parse a file and return a specified line

files

How to check if a directory is empty

A stratightforward function to check if a directory is empty.