1: The solution to the garbled code in reading Chinese:
add the encoding mode “UTF-8” when constructing the inputstreamreader
BufferedReader br = new BufferedReader(new InputStreamReader(
new FileInputStream(new File("F:/download/test.txt")),"utf-8"))
2: When using filewriter to write a file, you must add
fw.flush();
To write successfully.
Read More:
- Java learning error information 3 — Java notes
- Keytool error: java.io.FileNotFoundException
- [Solved] nacos Startup Error: java.io.IOException…
- java.sql.SQLRecoverableException: IO Error: Connection reset
- Error:java.io.FileNotFoundException: Path is not a file [How to Solve]
- java.sql.SQLException : IO error: socket read timed out!
- Ambqpioexception of rabbitmq error: java.io.ioexception
- Caused by: java.io.IOException: APR error: -730053
- File.createNewFile report errors java.io.IOException , resolved
- Shrio | java.io.IOException: Resource [classpath:shiro.ini] could not be found
- Exploring the streaming call of underscore
- java.sql.SQLException : IO exception: socket read timed out
- Keytool error: java.io.FileNotFoundException : MyAndroidKey.keystore (access denied)
- 【Error】gRPC failure=Status{code=UNAVAILABLE, description=io exception, cause=io.netty.channel.
- When Tomcat starts: IOException while loading persistent sessions: java.io.EOFException Solutions for
- Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect
- UE4 texture streaming pool over xxmb error
- Solr 4.0 SolrException: Error opening new searcher java.io.FileNotFoundException problem solution
- Solve the problem caused by: java.sql.SQLRecoverableException : IO error: connection reset related problems
- Install additional stage package for streamsets – error in cdh6.3.0 package rest API call error: java.io.eofexception