Created
January 19, 2017 01:32
-
-
Save drpventura/7bfb80184a88a0a3e36c20b17fb8d5ca to your computer and use it in GitHub Desktop.
Simple file access using Scanner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.usf; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public class Benford { | |
public static void main(String[] args) throws FileNotFoundException { | |
Scanner s = new Scanner(new File("data/sample1.txt")); | |
System.out.println(s.nextLine()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment