-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEFTReport.java
More file actions
37 lines (31 loc) · 976 Bytes
/
EFTReport.java
File metadata and controls
37 lines (31 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package src;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
/**
* The EFTReport class, this class writes an EFT report to the disk pertaining to the costs and services within the provider files
*
* @author Rediat Shamsu
* @version 1.0
*/
public class EFTReport {
/**
* printEFTReport, reads EFT file and then prints each line
*/
public static void printEFTReport(){
try{
File EFTfile = new File("EFT.txt");
Scanner EFTscanner = new Scanner(EFTfile);
while(EFTscanner.hasNextLine()){
String EFTline =EFTscanner.nextLine();
System.out.println(EFTline+"\n");
}
EFTscanner.close();
}catch(IOException e){
System.out.println("Error opening EFT file.\n");
e.printStackTrace();
}
//need to write EFT report to Disk
//Provider files contains cost and service
}
}