public static Tape importTapeFromFile(File f) throws FileNotFoundException, TuringException
	{
		Scanner s = new Scanner(f);
		
		int instructionCount=0;
		try
		{
			instructionCount = Integer.parseInt(s.nextLine());
		}
		catch(NumberFormatException ex)
		{
			throw new TuringException("Could not import file: Number of instructions not specified.");
		}
		
		for(int i=0;i<instructionCount;i++)
		{
			s.nextLine();
		}
		
		Tape tape = new Tape(Simulator.ONE_DIMENSIONAL);
		
		String tapeString = "";
		while(s.hasNextLine())
		{
			tapeString+=s.nextLine();
		}
		
		boolean tapeHeadPosition=false;
		
		for(int x=0;x<tapeString.length()-2;x++)
		{
			if(tapeString.charAt(x+1)=='<'&&tapeString.charAt(x+3)=='>'&&!tapeHeadPosition)
			{
				tapeHeadPosition=true;
				tape.setTapeCellSymbol(tapeString.charAt(x+2), x, 0);
				tape.setTapeHeadX(x);
				tapeString = tapeString.substring(0,x)+tapeString.substring(x+2,tapeString.length());
			}
			else
			{
				tape.setTapeCellSymbol(tapeString.charAt(x+1), x, 0);
			}
		}
		
		return tape;
	}