Learning file I/O in java, but cant seem to get java to recognize this format in a text document :
    A=1
    B=2
    .
    .
    .
    .
    Z=26
What i want is for the letters A through Z to be equal to the int counterpart, I've been able to do this in C# using this code:
        var dic = File.ReadAllLines(AplhabetFile)
                  .Select(l => l.Split(new[] { '=' }))
                  .ToDictionary(s => s[0].Trim(), s => s[1].Trim());
but i can't seem to find its exact java equivalent anywhere. Any Ideas ?
 
    