03.02.2015 Views

Input e Output in Java

Input e Output in Java

Input e Output in Java

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Agevolazioni per i file di testo<br />

FileReader file = new<br />

FileReader(“<strong>in</strong>put.txt”);<br />

BufferedReader <strong>in</strong> = new<br />

BufferedReader(file);<br />

Str<strong>in</strong>g <strong>in</strong>putL<strong>in</strong>e = <strong>in</strong>.readL<strong>in</strong>e();<br />

●<br />

Già lo conosciamo: otteniamo una l<strong>in</strong>ea di testo<br />

con il metodo readL<strong>in</strong>e()<br />

Laboratorio di Programmazione - Luca Tesei<br />

24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!