java - Android, Trying to read through a file stored online. But file doesn't have a type tag -


I am trying to read through an online cached file, but the file does not have a type tag. What is happening with my code, and why do I need to change?

Code:

  Click the Public Zero Button 1 (see View) The client throws Protocol Explanation, IOException {int countWords = 0; FileInputStream fstream = New FileInputStream ("http: // textfile / textfile"); DataInputStream = In New DataInputStream (fstream); BufferedReader br = new BufferedReader (new InputStreamReader (in)); String line = ""; While ((line = br.readline ())! = Tap {} in.close ();}  

When I run the code, it says, "Unfortunately, the test Closed "


Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

scala - Play Framework - how to bind form to a session field -