Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: snowicefox17 on May 5, 2020



Title: Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat?
Post by: snowicefox17 on May 5, 2020
Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat?

▸ DataOutputStream outfile = new DataOutputStream(new FileOutputStream("out.dat"));

▸ DataOutputStream outfile = new DataOutputStream("out.dat");

▸ DataOutputStream outfile = new DataOutputStream(FileOutputStream("out.dat"));

▸ DataOutputStream outfile = new DataOutputStream(new File("out.dat"));


Title: Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat?
Post by: anthead on May 5, 2020
Content hidden