Code:
def get_distances(filename):
opener = open(filename)
d = {}
while file.readline(opener) != '':
'''converts a file with cities and distances into a dictionary with values
of distances from one city to
def get_distances(filename):
opener = open(filename)
d = {}
while file.readline(opener) != '':
'''converts a file with cities and distances into a dictionary with values
of distances from one city to
ConsoleKeyInfo input;
do
{
if (File.Exists("info.txt") == true) ;
else Console.WriteLine("File not found! \nPress any key to try again..."); Console.ReadKey(true);
} while (File.Exists("info.txt") == false);
StreamReader reader = new StreamReader("info.txt");
using System;
namespace namespace1
{
class class1
{
static void Main(String[] args)
{
Console.WriteLine("What is your initial?");
int name1 = Console.Read();
char ch = Convert.ToChar(name1);
Console.WriteLine("What is your name again?");
string name2 = Console.ReadLine();