Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- public class Questions
- {
- public Questions[] loadData(String fileName)
- {
- Questions[] loadedQuestions;
- try
- {
- String fileNameWithPath = "ExampleFiles/"+fileName;
- Scanner dataSource = new Scanner (new FileInputStream(fileNameWithPath));
- }
- catch( Exception e)
- {
- System.out.println("The file could not be found");
- }
- return loadedQuestions;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement