Data I / O stream

1. Application of the file output stream.
  String is defined as follows:
  String str = "12345abcdef @ #% & * Software Engineering";
  programming the string to the file "data.txt".

 

2. The application file input stream.
   Modify the program title in the first, reading a file "data.txt", the read data output in the console.


3. Experience:

Data I / O may be able to permanently store data created by the program, but I'm still learning too understand that learning is a process of accumulation, data I / O to rely on continuous learning in order to learn!

 

Guess you like

Origin www.cnblogs.com/chenxinqian/p/11141154.html