Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla wrote:The contents will get erased provided you are not trying to append the contents to the file.
abalfazl hossein wrote:
How can I report them to fix it?
abalfazl hossein wrote:then it is a mistake of sun web site:
http://download.oracle.com/javase/tutorial/essential/io/bytestreams.html
How can I report them to fix it?
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Exception in thread "main" java.lang.NullPointerException
at filetestread.Main.main(Main.java:36)
Java Result: 1
abalfazl hossein wrote:Now this error
Exception in thread "main" java.lang.NullPointerException
at filetestread.Main.main(Main.java:36)
Java Result: 1
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
run:
Exception in thread "main" java.lang.NullPointerException
at filetestread.Main.main(Main.java:29)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla wrote:
But I dont understand why its giving java.lang.NullPointerException at line 29.
abalfazl hossein wrote:
This line has problem
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
1039710310011510310011510311597100103100115103100115103100115103100115103100115103100115103
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
abalfazl hossein wrote:If I save this string in a text file, Is it possible to cover it to char? by FileOutputStream?
http://download.oracle.com/javase/tutorial/essential/io/bytestreams.html
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|