c programming

17 Karteikartenvon Haseeb1968
Diese Karteikarten lernenKostenlos · Spaced Repetition · iPhone, Android, Mac & Web

Alle Karten

1
which library is used for file handling operations
stdio.h
2
use of fopen() and what does it return
it is used to open a file and it returns a pointer to the file
3
which function is used to close a file
fclose()
4
which function is ised to read from a file
fread()
5
use of fseek()
it is used to set the file position to a specified position.
6
use of feof()
It is used to check whether the end of the file is reached or not.
7
use of ftell()
It is used to get the current file position.
8
use of ferror()
It is used to check whether an error occurred during file operation or not.
9
use of remove()
It is used to delete a file.
10
use of rename()
It is used to rename a file.
11
what does the modes do in file
determines where the file is positioned when opeaned and what functions are allowed
e.g after you close a file you can reopean the file in different mode depending upon what you are doing e.g reading , writing or doing both simaltaneously in a file
12
what does this mode does in files "r":
Opens a file for reading. The file must exist.
13
what does this mode does in files "w"
Creates a file for writing. If the file already exists, it is truncated to zero length.
14
what does this mode does in files"a"
Appends to a file. Writing operations are always performed at the end of the file, regardless of the current file position.
15
what does this mode does in files "r+"
Opens a file for both reading and writing. The file must exist.
16
what does this mode does in files w+
Creates a file for both reading and writing. If the file already exists, it is truncated to zero length.
17
what does this mode does in files a+"
Opens a file for both reading and appending. Writing operations are always performed at the end of the file, regardless of the current file position.
Alle 17 Karten kostenlos lernen

Mehr Karteikarten: Informatik

Data Structures Final Review Minimal53 KartenInformatik · EnglischJacksonCSS45 KartenInformatik · EnglischVenCompTIA A+ Core 1 Domain 1 Definitions38 KartenInformatik · EnglischatalnagiQ3 COMPUTER33 KartenInformatik · EnglischgabbyynyCOP4538 27 KartenInformatik · EnglischAllixarNetSPI Interview21 KartenInformatik · EnglischIanL.2 starting a career in computer servicing17 KartenInformatik · Englischstudentnode.js11 KartenInformatik · DeutschInaPCEP exam prep (python)212 KartenInformatik · EnglischspartacusEmpowerment Technology (ICT Basics)119 KartenInformatik · EnglischphiaCompTia Security + Multiple Choice83 KartenInformatik · EnglischInfosecSamuraiCryptography: Ciphers and XOR69 KartenInformatik · Englischsab

Alle Decks: Informatik

Lerne diese Decks in der App

Kostenlos auf iPhone, Android, Mac und im Web. Füge jedes Deck mit einem Tipp zu deinem Konto hinzu.

Laden im App StoreJetzt bei Google Play
Alle 17 Karten kostenlos lernen