adplus-dvertising
frame-decoration

Question

In the given constructor declaration for character based file operation what does ‘path’ and ‘bool specifies?
StreamWriter(string path, bool append)

a.

the name of the file to open

b.

specifies the full path of file

c.

if append is true, the file is appended to the end of the existing file

d.

all of the mentioned

Posted under C# programming

Answer: (d).all of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In the given constructor declaration for character based file operation what does ‘path’ and ‘bool specifies? StreamWriter(string path, bool append)

Similar Questions

Discover Related MCQs

Q. Which of the following is a type of stream in C#?

Q. Which of the following is used to perform all input & output operations in C#?

Q. Which method among the following returns the integer if no character is available?

Q. Which method of character stream class returns the numbers of characters successfully read starting at count?

Q. Which method of the character stream class returns the numbers of characters successfully read starting at index?

Q. Which among the following classes are used to perform the character based file operations?

Q. The advantages of using character stream based file handling are?

Q. From which of these classes, the character based output stream class Stream Writer is derived?

Q. Which of these is a method used for reading bytes from the file?

Q. Which of these is a method used to clear all the data present in output buffers?

Q. Choose the filemode method which is used to create a new output file with the condition that the file with same name if exists will destroy the old file:

Q. Choose the filemode method which is used to create a new output file with the condition that the file with same name must not exist.

Q. Which property among the following represents the current position of the stream?

Q. Which among the following is used for storage of unmanaged memory aspects?

Q. Which among the following is used for storage of memory aspects?

Q. Which of these classes is used for input and output operation when working with bytes?

Q. Which of these data types is returned by every method of OutputStream?

Q. Which of these classes is used to read and write bytes in a file?

Q. Which among the following attempts to read up to count bytes into buffer starting at buffer[offset], returning the number of bytes successfully read?

Q. Select the action of the method long seek()?