private static void printText() throws IOException{
		
		String text = "";
		String line = "";
		int count = 0;
		int colNum=0, colWidth=0, spaceWidth=0;
		
		File file = new File(fileName);
		FileReader namereader = new FileReader(file);
		BufferedReader in = new BufferedReader(namereader);
		
		// reads in the numbers for formatting and rest of the text
		while((line = in.readLine()) != null){
		
			if(count == 0){
				
				String layoutInfo = line;
				String[] splitInfo = layoutInfo.split(" ");
		
				colNum = Integer.parseInt(splitInfo[0]);
				colWidth = Integer.parseInt(splitInfo[1]);
				spaceWidth = Integer.parseInt(splitInfo[2]);
				
				count = 1;
			}
			else{
				text = text + " " + line;
			}
		}
		
		// splits text into n-char length
		ArrayList<String> parts = new ArrayList<String>();
        int len = text.length();
		
        for (int i=0; i<len; i+=colWidth){
            parts.add(text.substring(i, Math.min(len, i + colWidth)));
        }
		
		String str = "";
		String spaceCreator = padString(str,spaceWidth); 
		
		// outputs result to txt file
		File output = new File("Output.txt");
		BufferedWriter bw = new BufferedWriter(new FileWriter(output));

		for(int i=1; i<=parts.size(); i++){
			
			int everyOther = i;
			
			for(int j=1; j<=colNum; j++){
			
				if((everyOther * j) < parts.size()){
					bw.write(parts.get(everyOther * j) + spaceCreator);
				}
			}
			
			bw.write("\r\n");
		}
		
		bw.close();
	}