??????????? ????? ?? ????

Send Snippet To: Save this snippet to Code Collector Pro -- view all laletin's snippets
language: Java
license: Other

Code for Snippet:

                
public static void main(String[] args) throws Exception
{
 //??????? ?????-??????-????-??-?????
 FileInputStream inputStream = new FileInputStream("c:/data.txt");
 // ??????? ?????-??????-????-?-????
 FileOutputStream outputStream = new FileOutputStream("c:/result.txt");
 
 while (inputStream.available() > 0) //???? ???? ??? ????????????? ?????
 {
  int data = inputStream.read(); // ????????? ????????? ???? ? ?????????? data
  outputStream.write(data); // ? ???????? ??? ?? ?????? ?????
 }
 
 inputStream.close(); //????????? ??? ??????. ??? ?????? ?? ?????.
 outputStream.close();
}
comments powered by Disqus

Info

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 22
Date Added: 2017-06-23 23:36:43
Last Modified: 2017-08-19 15:16:01

Web Analytics