| |

VerySource

 Forgot password?
 Register
Search
View: 763|Reply: 1

Why use FileOutputStream and DataOutputStream in combination if reading and writing binary files?

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-4 23:10:01
| Show all posts |Read mode
Why use FileOutputStream and DataOutputStream in combination if reading and writing binary files? Why not just use DataOutputStream?
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-5 20:45:01
| Show all posts
You want to write the information to the file. Of course, you need to use FileInputSteam and FileOutPutStram(), which are the input and output streams for reading and writing files.
As for why use dataOutPutSteam()
Because this is a package, it can make data transmission faster and safer
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list