The standard C library-functions do not support record-oriented file-access.Neither do the common operating systems like Windows and Unix.So basically the answer is no.
how can create a attendece sheet in c language
#include <stdio.h> #include <ctype.h> ... int caps = 0; int c; file = fopen ("InputFile", "r"); while ((c = fgetc (file)) != EOF) { if (isupper (c)) ++caps; } fclose(file); ...
You need to make the previous record's next pointer point to the record you are removing's next record, and (if it is a doubly linked list) the next record's previous pointer point to the record you are removing's previous record. If you are keeping track of the head and/or tail of the list, you need to make sure you update them if you have just removed one of them.
FILE-level: ftell/fseek, fgetpos/fsetpos handle-level: lseek
The standard C library-functions do not support record-oriented file-access.Neither do the common operating systems like Windows and Unix.So basically the answer is no.
how can create a attendece sheet in c language
In UNIX: use function chmod
In simple words, it is the conversion of a high level language to an assembly level language. In C, it is the conversion of a .c file to a .s file
sure
It is a collection of various fuction in which we can define many function in Libaray file .
writes data to a FILE* stream.
#include <stdio.h> #include <ctype.h> ... int caps = 0; int c; file = fopen ("InputFile", "r"); while ((c = fgetc (file)) != EOF) { if (isupper (c)) ++caps; } fclose(file); ...
love
The C programming language provides many standard library functions for file input and output. These functions make up the bulk of the C standard library header <stdio.h>. The I/O functionality of C is fairly low-level by modern standards; C abstracts all file operations into operations on streams of bytes, which may be "input streams" or "output streams". Unlike some earlier programming languages, C has no direct support for random-access data files; to read from a record in the middle of a file, the programmer must create a stream, seek to the middle of the file, and then read bytes in sequence from the stream.
You need to make the previous record's next pointer point to the record you are removing's next record, and (if it is a doubly linked list) the next record's previous pointer point to the record you are removing's previous record. If you are keeping track of the head and/or tail of the list, you need to make sure you update them if you have just removed one of them.
Use function open or creat or fopen.