Tagged articles
7 articles
Page 1 of 1
php Courses
php Courses
Jul 18, 2025 · Backend Development

Master PHP’s fgetc(): Read Files & User Input One Character at a Time

This tutorial explains how to use PHP's fgetc() function to read single characters from opened files or standard input, covering file opening with fopen(), reading loops, handling end‑of‑file, and practical code examples for both file and user input scenarios.

Code ExamplesPHPcharacter reading
0 likes · 4 min read
Master PHP’s fgetc(): Read Files & User Input One Character at a Time
php Courses
php Courses
Apr 8, 2025 · Backend Development

Using PHP fgetc() to Read Characters from Files and Standard Input

This article explains how to use PHP's fgetc() function to read single characters from a file or standard input, covering file opening with fopen(), reading loops, handling end‑of‑file, and practical code examples for both file and user input scenarios.

PHPcharacter inputfgetc
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and Standard Input
php Courses
php Courses
Sep 29, 2024 · Backend Development

Using PHP fgetc() to Read Characters from Files and Standard Input

This article explains the PHP fgetc() function, showing how to open files with fopen(), read characters sequentially using fgetc() in loops, and capture user input from STDIN, accompanied by clear code examples for each use case.

character readingfgetcfile-handling
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and Standard Input
php Courses
php Courses
Aug 22, 2024 · Backend Development

PHP fgetc() Function: Reading Characters from Files and Standard Input

This article explains PHP's fgetc() function for reading a single character from an opened file or standard input, demonstrates how to open files with fopen(), shows example code for looping through file contents, and provides a user input example with a switch statement.

BackendPHPTutorial
0 likes · 4 min read
PHP fgetc() Function: Reading Characters from Files and Standard Input
php Courses
php Courses
May 11, 2024 · Backend Development

Using PHP fgetc() to Read Characters from Files and Standard Input

This article explains the PHP fgetc() function, showing how to open files with fopen(), read characters sequentially using fgetc() in loops, and capture user input from STDIN, accompanied by clear code examples for each use case.

PHPcharacter inputfgetc
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and Standard Input
Node Underground
Node Underground
Dec 8, 2019 · Backend Development

How to Synchronously Read User Input in Node.js Without readline

This guide explains how to capture user input synchronously in Node.js by accessing the standard input file descriptor directly, compares it with the asynchronous readline approach, and shows practical code examples for different buffer sizes and platform considerations.

fs modulereadline alternativestdin
0 likes · 8 min read
How to Synchronously Read User Input in Node.js Without readline
JavaScript
JavaScript
Dec 14, 2018 · Backend Development

How to Process Chinese Input in Node.js: Trim, Replace, and Output

This guide demonstrates how to configure Node.js stdin for UTF-8, read incoming Chinese text, remove question particles and punctuation, replace question marks with exclamation marks, and output the transformed strings, with clear code examples and expected results.

Chinese text processingJavaScriptNode.js
0 likes · 1 min read
How to Process Chinese Input in Node.js: Trim, Replace, and Output