Skip to content
StackPractices

Tag: file-handling

Browse 19 practical software engineering resources tagged with "file-handling". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving file-handling.

Parse CSV Files with Python and Pandas

How to read, filter, and transform large CSV files efficiently using Python pandas and the csv module.

Bash Loop Over Files

How to safely loop over files and directories in Bash, handling spaces, globs, and large file lists with correct patterns.

Bash Parallel Execution

How to run shell commands in parallel with xargs, GNU parallel, and Bash background jobs while controlling concurrency and collecting results.

Bash Text Processing

How to build capable text processing pipelines with grep, sed, awk, cut, sort, uniq, and tr for log analysis and data transformation.

Compress and Decompress Files

How to handle ZIP, GZIP, and TAR archives programmatically.

Compress and Decompress Files with Gzip and Brotli

How to reduce file sizes for APIs, static assets, and log files using Gzip, Brotli, and zlib with streaming compression, content negotiation, and what works.

Copy and Move Files

How to copy and move files across platforms safely and efficiently.

Export Data to CSV/Excel

How to export structured data to CSV and Excel files efficiently.

File Upload Validation

How to handle file uploads securely with size, type, and content validation.

Generate PDFs

How to generate PDF documents programmatically from HTML, templates, or raw data.

Generate Temporary Files

How to create temporary files and directories safely with automatic cleanup across Python, Node.js, Java, and Bash.

Image Optimization

How to resize, compress, and optimize images for web performance.

Import Data from CSV/Excel

How to parse and import data from CSV and Excel files with validation.

Read Large Files

How to read large files efficiently without running out of memory.

Read and Write Files

How to read from and write to files safely across multiple programming languages.

Rotate Log Files

How to implement log rotation by size, date, and count to prevent disk exhaustion across Python, Node.js, Java, and Linux systems.

Process Large Files with Streams

How to read, transform, and write large files efficiently using streams without loading entire files into memory in Python, Node.js, and Java.

Watch File Changes

How to monitor file system changes in real time.

Write Large Files

How to write large files efficiently using buffered and streaming output.