{ Snipperize } /file

Snippets about file

Here are the latest snippets talking about file. Please choose your favorite one or add a new one.

Make unique file name

Sometimes it is important to save data in the file but the file with the specified name already exists. This function creates a file name that is similar to the original by adding a unique numeric suffix. This avoids the renaming of existing files.

Python / file, name, unique / by ThePeppersStudio (132 days, 17.77 hours ago)

Check if a file exists

Check if a file exists use fstream.

C++ / file, fstream, exist / by ThePeppersStudio (174 days, 12.39 hours ago)

Fastest vs Easiest way to read a full file into a std::string.

Fastest vs Easiest way to read a full file into a std::string.

C++ / fastest, easiest, iostream, string, file / by ThePeppersStudio (175 days, 8.35 hours ago)

Advanced Directory Synchronization module

This program is an advanced directory synchronization and update tool. It can be used to update content between two directories, synchronize them, or just report the difference in content between them. It uses the syntax of the 'diff' program in printing the difference.

Python / robocopier, file, synchronization, diff, filecmp / by ThePeppersStudio (213 days, 12.04 hours ago)

Recursively list all files and directories below a given directory

This is example code of how to walk a directory recurisively and create a flat list of fully qualified names for all the files and directories under the supplied virtual root directory.

Objective-C / file, directory, list / by ThePeppersStudio (292 days, 14.78 hours ago)

Copy Files Faster With Sync On Linux

r : recursive v: verbose --progress : shows progress with percentage

Bash/Shell / copy, file, sync, linux / by ThePeppersStudio (311 days, 10.97 hours ago)

File Download With Limited Speed

This snippet shows you how to limit the download rate of a file download.

PHP / download, file, flush, limit, speed / by ThePeppersStudio (319 days, 17.04 hours ago)

PHP File to Byte Array

PHP / file, byte, array, convert / by ThePeppersStudio (362 days, 7.84 hours ago)

Super File System Service

The one and only class for all your file handling needs. Browse a directory and all child directories: $filesSvc = new FileSystemService ( ); $templates = $filesSvc->browseDirectory ( '../path/to/directory', true ); echo jsonencode ( $templates ); printr( $templates ); Read a file: $file = FileSystemService::readFile ( '/path/to/file.html' ); echo ( $file ); Write a file: $file = FileSystemService::writeFile ( 'FileName', 'Is this enough information Vordreller? I think you should try to experiment.' );

PHP / file, directory, handler / by ThePeppersStudio (374 days, 20.88 hours ago)

  • 1