What is the shortest way to open a file for reading using the readLine () method and setting its encoding?
Is the next line correct and shortest?
BufferedReader reader = new BufferedReader( new InputStreamReader( new FileInputStream(myPath), myEncoding));
source share