Which of the following will open a file named MyFile.txt and allow you to append data to its existing contents?下列哪一个可以打开一个名为MyFile.txt的文件,并可以将数据追加到其现有内容中?
A. FileWriter fwriter = new FileWriter("MyFile.txt", true);PrintWriter outFile = new PrintWriter(fwriter);
B. FileWriter fwriter = new FileWriter("MyFile.txt");PrintWriter outFile = new PrintWriter(fwriter);
C. PrintWriter outfile = new PrintWriter("MyFile.txt", true);
D. PrintWriter outfile = new PrintWriter(true, "MyFile.txt");