The fputc function writes a character to a specified file. The function is called in the form of fputc (character quantity, file pointer, the number of characters to be written can be a character constant or variable, for example, fputc ('A', FP).
The following text: This article mainly introduces the PHP file read and write operation related function Summary, this article summarizes fwrite (), Fread (), fgets (), fgetc (), file (), ReadFile () and other functions of the introduction and use
Hello, I have a question about php file processing. I wrote the upload code to experience fread(development and fgetc(development, the content of the file test.txt is the thisisatestfile.txt file encoded in UTF-8 format {code ...} the above code can
PHP fgetc functions
Fgetc(PHP 4, PHP 5)Fgetc-Gets the character from the file pointerDescribeString fgetc (resource $ processing)Gets a character from the given file pointer.ParametersHandleThe file pointer must be valid and must point to a file
Fgets (read a string from the file)Related functions: open, fread, fscanf, GETCHeader file include Define the function char * fgets (char * s, int size, file * stream );Function Description: fgets () is used to read characters from the file referred
The function getchar is defined to be equivalent to GETC (stdin ). the difference between the first two functions is that GETC can be implemented as a macro, whereas fgetc cannot be implemented as a macro. this means three things.
1. The
Read the book, found the four functions, want to know their differences. Results Online Search found that many people say that fgetc, FPUTC F represents the file, that is, these two functions are related to files! But a look at their function
Two original posts: http://www.cnblogs.com/younes/archive/2010/01/05/1639482.html
Http://blog.csdn.net/cxyol/archive/2006/03/18/628324.aspx
FirstTwo functions are not functions in the c Standard Library:
Int getch (void) // read a character from
First, these two functions are not functions in the C standard library,
Int getch (void) // read a character from the standard input. When you enter the character on the keyboard, the screen does not display the character you entered. That is, do
What is the difference between fgetc, fputc, getc, and putc in C language? getcputc
When I was reading a book, I found these four functions and wanted to know their differences. Results online query found that many people said that fgetc, fputc f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.