file handling

Practical resources about file handling for software engineers.

31 results

Working with Files and Streams

File operations are deceptively simple until you face large datasets, concurrent writes, or cross-platform path differences. Production code needs to handle streaming, compression, encoding, and cleanup gracefully.

This section provides recipes for reading large files efficiently, watching directories for changes, compressing archives, rotating logs, and parsing configuration files. Solutions cover Python, Java, Node.js, and Bash for maximum flexibility.

intermediate

JavaScript Drag and Drop File Upload with HTML5 API

Implement native HTML5 drag and drop file upload in JavaScript

javascript file-upload html5 formdata
intermediate

Node.js File Upload Validation: Type, Size, and Content

Validate file uploads in Node.js with multer for type, size, and content

nodejs express multer file-upload
intermediate

Stream Process Large Files in Node.js Without Memory Issues

Process GB-sized files in Node.js using streams. Covers readline, transform streams, pipeline,...

beginner

Batch Resize Images with Python

How to bulk resize and optimize images using Pillow and Python for web delivery.

beginner

Safely Extract Zip Files with Python

How to extract and validate zip archives securely using Python zipfile and shutil.

intermediate

Read Large Files

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

beginner

Read and Write Files

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

intermediate

Rotate Log Files

How to implement log rotation by size, date, and count to prevent disk exhaustion across Python,...

intermediate

Process Large Files with Streams

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

intermediate

Watch File Changes

How to monitor file system changes in real time.

intermediate

Write Large Files

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

No results found.