156k views
3 votes
When you open a stream for both reading and writing files, what must you always remember to do at the end?

User Hsandt
by
5.8k points

1 Answer

0 votes

Answer:

When you open a stream for both reading and writing you must always remember to close the stream.

Step-by-step explanation:

There are three basic steps to follow to read and write data from stream.

Steps to read data from the stream

1) Open the stream

2) Read the data from the stream

3) Close the stream

Step to write data to the stream

1) Open the stream

2) Write the data to the stream

3) Close the stream

User Brub
by
5.2k points