Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

To start reading file at specific byte number we use getw seekp seekg findp tal

ID: 3812601 • Letter: T

Question

To start reading file at specific byte number we use getw seekp seekg findp tal If you attempt to open file for sequential access, and the file doesn't exist, what happens ? error file id created user is asked if file is to be created none of these When sequential access file is opened to write, Is default "replace" or "append" ? To open file as random access use the following syntax ios:: random ios:: text ios:: binary none needed, random access is the default, none of these is correct To start writing file at specific byte number we use getw seekp seekg findp tabg2 To open file as random access use the following syntax ios:: random ios:: text ios:: binary none needed, random access is the default, none of these is correct

Explanation / Answer

Solution:

20)

seekg(), because seekg movies the get pointer to the desired location while reading the file.

21)

b) file id is created, fopen will create a new file named as same, when file is tried to be opened and could not be found

22)

By default it is replace, when the file is opened with w permission

23)

d) By default it is random.

24)

For writing at specific position we use seekp.

25)

none needed, random access is default.

I hope this helps. Don't forget to give a thumbs up if you like this.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote