static void getCommand(int blocks, int bytesPerBlock, String filename) throws IOException {
		BufferedReader r = new BufferedReader(new FileReader(filename));
		//StringTokenizer token = new StringTokenizer(r.readLine());
		
		
		FileManager file = new FileManager(blocks, bytesPerBlock);
		
		String storageName;
		int bytes;
		String line;
		String Command = null;
		
		while((line = r.readLine()) != null) {
			StringTokenizer token;
			token = new StringTokenizer (line);
			
			if (token.hasMoreTokens()) {
				Command = token.nextToken();
			}
			else {
				Command = "#";
			}
            
			if ( Command.equals("#")) {
				// Do nothing skip line
			}
			else if (Command.equals(create))
			{
				storageName = token.nextToken();
				bytes = Integer.parseInt(token.nextToken());

				file.addFile(storageName, bytes);

			}
			else if (Command.equals(delete))
			{
				storageName = token.nextToken();

				file.deleteFile(storageName);

			}
			else if (Command.equals(extend))
			{
				storageName = token.nextToken();
				bytes = Integer.parseInt(token.nextToken());

				file.extendFile(storageName, bytes);

			}
			else if (Command.equals(truncate))
			{
				storageName = token.nextToken();
				bytes = Integer.parseInt(token.nextToken());

				file.truncateFile(storageName, bytes);

			}
			else if (Command.equals(printState))
			{
				file.print();
			}

		}
		
		r.close();
	}