joseleonweb

Untitled

Mar 1st, 2021
505
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.io.*;
  2.  
  3. public class DtoS {
  4.  
  5.     public static void main(String[] args) {
  6.         String s;
  7.        
  8.         // Create and use a FileReader wrapped in a BufferedReader.
  9.         try (BufferedReader br = new BufferedReader(new FileReader("test.txt")))
  10.         {
  11.             while((s = br.readLine()) != null) {
  12.                 System.out.println(s);
  13.             }
  14.         } catch(IOException exc) {
  15.             System.out.println("I/O Error: " + exc);
  16.         }
  17.     }
  18. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×