//Attempt to open file
fileByteStream = new FileInputStream("credentials.txt");
credFile = new Scanner(fileByteStream); //credFile now contains what's in credentials.txt.
System.out.println("Reading and printing data.");
credData = credFile.next(); //credData now contains what's in credentials.txt as well. It allows me to read through the file.
while (credData.charAt(0)){
System.out.println(credData);