StackPractices

Tag: files

Browse 8 practical software engineering resources tagged with "files". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving files. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.

File Handling

File handling covers reading, writing, and managing files. It is a common task in applications, scripts, and data processing.

The resources below cover file I/O, streaming, permissions, and formats. Each guide helps you work with files reliably.

Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.

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...

File Upload Validation: Secure File Handling Guide

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,...

Import Data from CSV/Excel

How to parse and import data from CSV and Excel files with validation, streaming, and batch inserts.

Read Large Files in Node.js with Streams (5GB in 64KB RAM)

Process GB-sized files in Node.js with createReadStream, readline, Transform pipelines, and...

Read and Write Files in Python, Node.js & Bash

How to read and write files safely in Python, Node.js, Bash and Java, with atomic writes and...

Process Large Files with Streams

How to read, transform, and write large files efficiently using streams without loading entire...