// Same as other WriteNodesAndTagsToFile(), but accepts hashtables private static void WriteHashNodesToFile(Hashtable points) { System.Console.WriteLine("In Write HashNodes()"); StreamWriter file; file = new StreamWriter(_path + "hashNodes.txt", false); foreach (DictionaryEntry pair in points) { HashNode node = (YouRunApp.HashNode)pair.Value; file.WriteLine("HashNode: " + node.GetName()); file.WriteLine("Lat: " + node.GetLocation().GetLatitude()); file.WriteLine("Lon: " + node.GetLocation().GetLongitude()); file.WriteLine("Key: " + node.GetKeyword()); file.WriteLine("Description: " + node.GetDescription()); // Write tags of node to file foreach (HashNode.Tag tag in node.GetTagList()) { file.WriteLine("Keyword: " + tag.Keyword); file.WriteLine("Value: " + tag.Value); } file.WriteLine(); } file.Close(); System.Console.WriteLine("Leaving HashNodes()"); }