Updating a file using random access
Random Access File is used for non sequential access and the other two will be used for sequential access. Therefore the only answer that makes sense is Random Access File.
Output Stream has no constructor with the signature Output Stream(String name, Boolean append), you might be thinking about File Output Stream.
Text files typically take up more memory than binary and datalog files if the data is not originally in text form, such as graph or chart data, because the ASCII representation of data usually is larger than the data itself.Store data in text files when you want to access it from another application, such as a word processing or spreadsheet application.To store data in text format, use the String functions to convert all data to text strings.Binary files are the most compact and fastest format for storing data.You can use multiple data types in binary files, but it is uncommon.