Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Input: Two files - one contains city data and the other contains road data. .city.dat: This file contains information about cities, where each line has
Input: Two files - one contains city data and the other contains road data. .city.dat: This file contains information about cities, where each line has 5 attributes: City Number, City Code (2 letters), Full City Name, Population, and Elevation. .road.dat: This file contains information about roads, where each line has 3 attributes: Erom City, To City, and Distance. Note that all roads are assumed to be one-way String citiesFile String roadsFile Icity.txt"; \ roads.txt". "c:W I am getting an error that the directory or file not found. java.io.FileNotFoundException: c:// /city.txt (No such file or directory) How Do I set the path to the files
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started