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

1 thought on “In the given constructor declaration for character based file operation what does ‘path’ and ‘bool specifies?”

  1. d
    Explanation: StreamWriter(string path, bool append). Here, path specifies the name of the file to be opened, which can include a full path specifier. In the second form, if append is true, then the output is appended to the end of an existing file. Otherwise, output overwrites the specified file.

Leave a Comment