answersLogoWhite

0

How to Write a character in file?

User Avatar

Anonymous

16y ago
Updated: 8/17/2019

putc('q', file); /* assume file is a pointer-to-FILE */

/* Note: I answer you assuming that you know everything

else about files */

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you read and write video file in java?

you can use inputstream for reading the file java.io.fileinputstream and write the file using outputstream..


How can you tell when the last character of a text file has been read in c programming?

When you read a character from a file in C, you will typically use the C standard library function: fgetc (FILE*) This function reads a character from a file that was previously opened for read or read/write access, casts the character to an unsigned integer and then returns that integer. If a character was read, the return value will either be in the range 0 to 127 (a character in the ANSI character set), or -1 to -128 (a character in the extended ASCII character set). However, if no character was read, the function returns the EOF symbol. This symbol is defined in the <stdio.h> header. /* Example: redirect all characters from a file to stdout, one character at a time */ #include <stdio.h> int main (void) { FILE *fp; int c; /* open file for plain text reading */ fp=fopen ("datafile.txt", "r"); /* test for error */ if (fp==NULL) { return -1; } /* read characters until end of file */ while ((c=fgetc (fp)) != EOF) { /* redirect character to stdout */ putchar (c); } /* tidy up */ fclose (fp); fp = NULL; return 0; }


What character does the Apple OS use as a file delimiter?

The Character used as the file delimiter for Apple OS is the / (slash)


How do you write 12.00 in a numeric character?

how do you write $12.00 in a numeric character?


DOS requires a 3 character file extension?

No. DOS allows a max 3 character long file extension.


Who is the person that has to write about the character?

the person how has to write about the character is either the nararator or the author


A compressed file uses as the last character in the file extension?

underscore


What is meant by read and write txt in file handling?

read: moving data from file to memory write: moving data from memory to file


What abilities does the NTFS write permission grant?

Write to the file, append to the file, and read or change its attributes.


What are typical access rights that may be granted or denied to a particular user for a particular file?

Read, write, execute, and functions in software objects.


Write a PHP program to read and write a text file?

Oh this is easy =PLets say or file is "file.txt"


How do you write a fact file about a place?

How do you erite fct file