Tag

file-io

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Apr 18, 2025 · Backend Development

How to Use PHP's file_put_contents() for Writing Data to Files

This article explains the PHP file_put_contents() function, its syntax, parameters, return values, and provides practical code examples for writing strings, appending data, handling arrays, and using callbacks to dynamically generate file content.

Backendfile-iofile-writing
0 likes · 5 min read
How to Use PHP's file_put_contents() for Writing Data to Files
php中文网 Courses
php中文网 Courses
Apr 11, 2025 · Fundamentals

Handling Exceptions When Processing CSV and JSON Files in Python

This article explains how to use Python's try‑except and with statements to safely read and process CSV and JSON files, covering common errors such as missing files, permission issues, format problems, and providing best‑practice examples for robust error handling.

CSVException HandlingJSON
0 likes · 7 min read
Handling Exceptions When Processing CSV and JSON Files in Python
Python Programming Learning Circle
Python Programming Learning Circle
Mar 24, 2025 · Fundamentals

Python File Operations: Opening, Reading, Writing, and Appending Files

This guide explains Python file I/O fundamentals, covering encoding, opening files with different modes, reading methods (read, readline, readlines), writing and flushing data, automatic closing with context managers, and practical examples such as word counting, all illustrated with clear code snippets.

Code ExamplePythonfile-io
0 likes · 7 min read
Python File Operations: Opening, Reading, Writing, and Appending Files
Test Development Learning Exchange
Test Development Learning Exchange
Jan 12, 2025 · Fundamentals

Reading Various File Formats and Databases in Python

This guide demonstrates how to read and write common file types—including TXT, CSV, JSON, XML, Excel, YAML, Parquet, and HDF5—as well as how to connect to SQLite databases and perform web scraping using Python's standard libraries and popular third‑party packages.

CSVJSONSQLite
0 likes · 6 min read
Reading Various File Formats and Databases in Python
Raymond Ops
Raymond Ops
Dec 27, 2024 · Backend Development

Master Python Requests: Web Scraping Basics with GET, POST, and File Saving

This tutorial walks you through installing the Python requests library, using GET, POST, and PUT methods, handling query parameters, setting custom headers to bypass anti‑scraping measures, and saving both HTML content and images to local files, complete with runnable code examples.

HTTPPythonRequests
0 likes · 7 min read
Master Python Requests: Web Scraping Basics with GET, POST, and File Saving
Test Development Learning Exchange
Test Development Learning Exchange
Dec 14, 2024 · Fundamentals

Comprehensive Guide to JSON Operations in Python

This tutorial presents a thorough collection of Python JSON handling techniques, covering basic conversion, file read/write, data manipulation, merging, pretty printing, nested structures, custom serialization, batch processing, backup creation, performance optimization with ujson, API interaction, aggregation, error handling, and processing of commented JSON files.

APIData SerializationJSON
0 likes · 10 min read
Comprehensive Guide to JSON Operations in Python
Test Development Learning Exchange
Test Development Learning Exchange
Sep 2, 2024 · Fundamentals

Python‑docx Guide: Extract, Create, and Manipulate Word Documents

This tutorial demonstrates how to use the python‑docx library to extract text and images, create new documents, replace content, add pictures, build and fill tables, delete paragraphs, set styles, and insert headers and footers in Word files, providing ready‑to‑run code examples for each operation.

Pythonautomationdocx
0 likes · 6 min read
Python‑docx Guide: Extract, Create, and Manipulate Word Documents
Test Development Learning Exchange
Test Development Learning Exchange
Jul 23, 2024 · Backend Development

Common Python Utility Interfaces: Validation, HTTP, File I/O, JSON, DateTime, Encryption, SQLite, Image Processing, Error Handling, and Config Loading

This article presents a collection of reusable Python utility interfaces—including data validation, HTTP request handling, file read/write, JSON parsing, date‑time formatting, symmetric encryption, SQLite persistence, image resizing, exception handling, and configuration loading—each illustrated with concise code examples to improve code readability and testability.

BackendEncryptionHTTP
0 likes · 4 min read
Common Python Utility Interfaces: Validation, HTTP, File I/O, JSON, DateTime, Encryption, SQLite, Image Processing, Error Handling, and Config Loading
Test Development Learning Exchange
Test Development Learning Exchange
Jul 22, 2024 · Fundamentals

Common Python Utility Interfaces: Validation, HTTP, File I/O, JSON, DateTime, Encryption, SQLite, Image Processing, Error Handling, and Config Loading

This article presents a collection of reusable Python utility interfaces—including data validation, HTTP request handling, file read/write, JSON parsing, date‑time formatting, symmetric encryption, SQLite persistence, image resizing, exception handling, and configuration loading—each illustrated with concise code examples to improve code readability and testability.

EncryptionHTTPJSON
0 likes · 4 min read
Common Python Utility Interfaces: Validation, HTTP, File I/O, JSON, DateTime, Encryption, SQLite, Image Processing, Error Handling, and Config Loading
Python Programming Learning Circle
Python Programming Learning Circle
Mar 22, 2023 · Fundamentals

Python Electronic Attendance System Tutorial with Full Source Code and Assignment Instructions

This article presents a step‑by‑step tutorial for building a Python‑based electronic attendance system, describing required CSV data files, outlining student assignment tasks, providing complete source code for loading data, login, attendance recording, query functions, and a main driver script.

AttendanceBeginnerCSV
0 likes · 8 min read
Python Electronic Attendance System Tutorial with Full Source Code and Assignment Instructions
Python Programming Learning Circle
Python Programming Learning Circle
Nov 25, 2022 · Fundamentals

Python File I/O, CSV Handling, and Data Serialization Tutorial

This tutorial explains Python's file opening and closing methods, various file path formats, reading and writing techniques including with‑open, pointer manipulation, copying files, CSV read/write operations, in‑memory streams with StringIO/BytesIO, sys.stdin/stdout usage, and data serialization/deserialization using JSON and pickle.

CSVJSONPickle
0 likes · 15 min read
Python File I/O, CSV Handling, and Data Serialization Tutorial
Python Programming Learning Circle
Python Programming Learning Circle
Nov 16, 2022 · Fundamentals

Reading and Writing Excel Files with Python: xlrd, xlwt, and openpyxl

This tutorial explains how to use Python's xlrd, xlwt, and openpyxl libraries to read, write, and append data in both XLS and XLSX Excel formats, providing complete code examples, performance considerations, and test results for each operation.

Data ProcessingExcelPython
0 likes · 11 min read
Reading and Writing Excel Files with Python: xlrd, xlwt, and openpyxl
Python Programming Learning Circle
Python Programming Learning Circle
Nov 10, 2022 · Fundamentals

Comprehensive Guide to Python File Operations, CSV Handling, and Data Serialization

This article provides a thorough tutorial on Python file I/O, covering opening and closing files, mode flags, absolute and relative paths, reading and writing techniques, file copying, CSV read/write, in‑memory streams, sys module redirection, and serialization with JSON and pickle, including code examples and best practices.

CSVJSONPickle
0 likes · 20 min read
Comprehensive Guide to Python File Operations, CSV Handling, and Data Serialization
Python Programming Learning Circle
Python Programming Learning Circle
Oct 18, 2022 · Fundamentals

Python Electronic Attendance System Tutorial with Complete Source Code

This article presents a step‑by‑step tutorial for building a Python‑based electronic attendance system, covering data loading from CSV files, user login, attendance recording, query functionality, and includes all required source code with usage instructions.

AttendanceCSVTutorial
0 likes · 8 min read
Python Electronic Attendance System Tutorial with Complete Source Code
Python Programming Learning Circle
Python Programming Learning Circle
Sep 28, 2022 · Backend Development

Python-Based Student Attendance System – Project Description and Implementation Guide

This article outlines a Python-driven electronic attendance system project, detailing required CSV data structures, core functions for loading student information, user login, attendance recording, and query features, along with code snippets and step-by-step instructions for students to complete and test the application.

AttendanceCSVcli
0 likes · 8 min read
Python-Based Student Attendance System – Project Description and Implementation Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jun 23, 2022 · Fundamentals

Python Basics: Data Types, Operators, Control Flow, and Common Functions

This comprehensive Python cheat‑sheet covers fundamental data types, arithmetic and comparison operators, boolean logic, special characters, file I/O, OS utilities, string manipulation, list and dictionary operations, control‑flow statements, loops, exception handling, and basic function, module, and package usage, providing concise examples for each concept.

Data TypesOperatorsPython
0 likes · 7 min read
Python Basics: Data Types, Operators, Control Flow, and Common Functions
macrozheng
macrozheng
May 18, 2022 · Backend Development

Master Spring’s Assert and Utility Classes: Essential Tips & Code Samples

This guide explains Spring’s Assert utilities and a comprehensive set of core helper classes—including ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, AopUtils, and AopContext—detailing their purpose, typical use cases, and providing concise code examples for each method.

AOPAssertionsJava
0 likes · 14 min read
Master Spring’s Assert and Utility Classes: Essential Tips & Code Samples
Python Programming Learning Circle
Python Programming Learning Circle
May 14, 2022 · Backend Development

Python Book Management System with CRUD Operations and User Authentication

This article presents a Python command‑line book management system that supports adding, searching, deleting, modifying, and displaying books stored in a text file, and extends it with a simple login‑registration feature using file‑based user data, illustrating full CRUD operations and basic authentication.

AuthenticationCRUDPython
0 likes · 10 min read
Python Book Management System with CRUD Operations and User Authentication