loading part of string from file

Hi in my project i have to save and load data from a file i have the saving down but when trying to use substrings to extract certain bits it dosent seam to work i get this error

ArgumentOutOfRangeException: startIndex + length > this.length
Parameter name: length
System.String.Substring (Int32 startIndex, Int32 length) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/String.cs:356)
LoadScore.OnMouseOver () (at Assets/LoadScore.cs:22)
UnityEngine.SendMouseEvents:DoSendMouseEvents(Int32, Int32)

saving the score

using UnityEngine;
using System.Collections;
using System;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using System.Collections.Generic;

public class saveScore : MonoBehaviour {
	public int Tank1Score;
	public int Tank2Score;
	public int Tank3Score;
	// Use this for initialization
	void Start () 
	{
		Tank1Score = PlayerPrefs.GetInt("Blues Score");
		Tank2Score = PlayerPrefs.GetInt("Greens Score");
		Tank3Score = PlayerPrefs.GetInt("Reds Score");

	}
	
	void OnMouseOver()
	{
		if (Input.GetKeyDown(KeyCode.Mouse0))
		{
			Debug.Log("Score Saved");
			//Get a binary formatter
			var b = new BinaryFormatter();
			//Create a file
			var f = File.Create(Application.dataPath + "/highscores.txt");
			//Save the scores
			b.Serialize(f, Tank1Score);
			b.Serialize(f, Tank2Score);
			b.Serialize(f, Tank3Score);
			f.Close();
			
			System.IO.File.WriteAllText("E:/score.txt", "Tank1Score:" +Tank1Score
			                            +"  "+"Tank2Score:"+Tank2Score
			                            +"  "+"Tank3Score:"+Tank3Score );
		}
	}
}


using UnityEngine;
using System.Collections;
using System;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using System.Collections.Generic;

public class LoadScore : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	void OnMouseOver()
	{
		if (Input.GetKeyDown(KeyCode.Mouse0))
		{
			Debug.Log("Score Load");
			string readText = File.ReadAllText("E:/score.txt");
			string tank1 = readText.Substring(11,11);
			string tank2 = readText.Substring(25,25);
			string tank3 = readText.Substring(39,39);
			Debug.Log(tank1);
			Debug.Log(tank2);
			Debug.Log(tank3);
		}
	}
}

Your problem is about exceeding length of string, be careful about starting index and length.

Debug.Log(yourString.Substring(startingIndex, length));

Debug.Log("abcdefghijklm".Substring(2, 4)); //output : cdef