Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  bina.java
Language: JAVA
Code:
public class bina{

    public static void main(String[] args) 
      {
  try{
  FileInputStream fstream = new FileInputStream("textfile.txt");
  DataInputStream in = new DataInputStream(fstream);
  BufferedReader br = new BufferedReader(new InputStreamReader(in));
  String strLine;
  while ((strLine = br.readLine()) != null)   {
  System.out.println (strLine);
  }
  in.close();
    }catch (Exception e)
  System.err.println("Error: " + e.getMessage());
  }
  }
}
    }

}          
Comments: