449 exam1

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards
fopen()

function opens the file whose name is the string
       pointed to by path and associates a stream with it

2
New cards
mode

f(open)

points to a string beginning with r, r+, w, w+, a, a+

3
New cards
r

Open text file for reading.  The stream is positioned at
 the beginning of the file.

4
New cards
   r+ 

Open for reading and writing.  The stream is positioned at
the beginning of the file.

5
New cards
w

Truncate file to zero length or create text file for writing.  The stream is positioned at the beginning of the file.

6
New cards
 w+

Open for reading and writing.  The file is created if it
does not exist, otherwise it is truncated.  The stream is
 positioned at the beginning of the file.

7
New cards
a

Open for appending (writing at end of file).  The file is created if it does not exist.  The stream is positioned at
the end of the file.

8
New cards
a+

Open for reading and appending (writing at end of file). The file is created if it does not exist.  Output is always appended to the end of the file.  POSIX is silent on what the initial read position is when using this mode.  For glibc, the initial file position for reading is at the beginning of the file, but for Android/BSD/MacOS, the initial file position for reading is at the end of the
file.

9
New cards
The result of applying fdopen() to a shared memory object is

undefined

10
New cards
freopen()

function opens the file whose name is the string pointed to by path and associates the stream pointed to by stream
  with it.  The original stream (if it exists) is closed

11
New cards