Ive been attempting to complete a project which is due in a number of hours (yeah im an idiot leaving it this late) where I have to take information on properties.
Ive been trying to make a graph on how many times each county is entered. The information is stored on a text file with "," delimiters. Every 8th value should be the name of a county. The code ive been using is stated below:
using (StreamReader sr = new StreamReader("base.txt"))
{
while ((line = sr.ReadLine()) != null)
{
string[] delimiters = new string[] { "," };
while(delimiters[i] != null)
{
if(delimiters[i] == "Antrim")
{
antrimPoints++;
}
else if(delimiters[i] == "Armagh")
{
armaghPoints++;
}
Bookmarks