KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Does anyone happen to know if there is any difference with regards to performance between the two methods of reading input file below? Thanks. 1) Reading a file with Scanner and File Scanner input = new Scanner(new File("foo.txt")); 2) Reading a file with InputStreamReader and FileInputStream InputStreamReader input = new InputStreamReader(new FileInputStream("foo.txt"));
Tags (comma-separated)
Save Edits
Cancel