quello che voglio fare io è scrivere il numero 12.94 nel file prova.txt ma.....
import java.io.*;
public class read
{ public static void main(String[] args)
{ FileWriter writer = new FileWriter("prova.txt");
PrintWriter out = new PrintWriter(writer);
out.println(12.94);
}
}
::::::::::QUESTO E' IL RISULTATO QUANDO ESEGUO:::::::::
read.java [5:1] unreported exception java.io.IOException; must be caught or declared to be thrown
{ FileWriter writer = new FileWriter("prova.txt");
^
1 error
Errors compiling read.
perche????????????