1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
4vir4ik [10]
3 years ago
9

Which method can be used to write data to a text file opened with the BufferedWriter object outfile?

Computers and Technology
1 answer:
maksim [4K]3 years ago
7 0

Answer:

Option (d) outfile.write();

Explanation:

As the object created for the class BufferedWriter is outfile, outfile.write is the correct syntax for writing in a text file. Here, write is the method used for writing into a text file. The data present is written in the textfile. Here, the text file is opened before writing the text into the file. Option (d) is correct.

Option (a) outfile.newLine(); is used to separate the lines. This is used to break the existing lines into smaller lines. This can also be used to start a new line. Here, newLine() is the method.So, option (a) is not suitable.

Option (b) outfile.existLine(); This is not a valid syntax as there is no method called existLine() in the class BufferedWriter. So, this is a wrong option.

Option (c) Write(outfile); This is not a valid syntax for writing in a text file. This is a wrong option.

You might be interested in
Anybody remember that football game that everyone used to play during school
fiasKO [112]

Answer:

Like an actual video game or the one where you would play during recess then get in trouble when someone got hurt

Explanation:

6 0
3 years ago
What are three characteristics of a vlan access port?
Effectus [21]
1.) switch port can become an access fourth or static or dynamic configuration.
2.) and access port is associated with a single VLAN.
3.) in access port is created with the switch port mode access command and then associated with a VLAN with the switchport access VLAN command.
7 0
3 years ago
In which phase of the software development life cycle is software tested in the same environment where it be used?
Keith_Richards [23]

Answer:

uhuuwuw

i

Explanation:

uuuuvgfbjfyrtrufuuuhuyh

4 0
3 years ago
I don't even understand what I'm supposed to do.
lianna [129]

Answer:

i tried but i can figure it out

5 0
3 years ago
Read 2 more answers
Computer has brought radical change in every field. Justify this statement​
Elza [17]

Answer:

Because we can do more research in a smaller amount of time because lots of things just pop up and people can talk to farther people around the world

Explanation:

because you can email people and zoom them and do research to find answers  

8 0
3 years ago
Other questions:
  • Does technology get in the way of learning ?<br> Help Meh ! ♥ Some ideas :D
    14·2 answers
  • If you want to use your computer for recording your band, you would benefit most from a(n)
    13·2 answers
  • A Trojan horse is a program that copies itself repeatedly using up resources and potentially shutting down a network. true or fa
    11·1 answer
  • A truth table with three inputs has how many switch combinations?
    12·1 answer
  • You often insert your company's logo into a document you create.one way to make it easier for you to quickly insert it is to sav
    5·1 answer
  • Olivia is trying to save for a new laptop computer. To help her save, she should start a _____. database financial statement per
    7·2 answers
  • What is the google search operator that limits results to a specific domain?
    8·1 answer
  • Help please not trying to fail
    13·1 answer
  • Vadik is creating a program where the user inputs their grade level and the program tells them which sports teams they are allow
    9·2 answers
  • Can anyone please help me out
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!