Skip to content
weigao edited this page Jun 20, 2026 · 6 revisions

cfstream Wiki

中文版:首页

Welcome to the official wiki for cfstream.

cfstream is a lightweight C/C++ header-only library designed to make file input and output redirection easier. It provides simple interfaces for redirecting standard streams, using independent C++ file streams, and querying the current library version.

This wiki contains detailed documentation, usage guides, API references, examples, and version history for the project.

Project Overview

cfstream currently provides two header files:

File Language Description
cfs.hpp C++ C++ interface with namespace support and independent cfs::cin / cfs::cout
cfs.h C C interface for simple standard input and output redirection

The library is intended for scenarios such as:

  • competitive programming
  • local file-based testing
  • Redirects input and output with a single function call
  • small C/C++ projects that need lightweight stream helpers

Current Version

Current version: 1.3.0

For detailed changes between versions, see:

Documentation Guide

If you are new to cfstream, start here:

For language-specific usage:

For complete function documentation:

For practical code samples:

For common questions and troubleshooting:

Quick Links

Notes

The README is designed to provide a quick introduction to the project, while this wiki provides more detailed documentation.

If you only want to quickly understand what cfstream is, read the repository README first.
If you want to learn how every function works, continue reading this wiki.

Clone this wiki locally