public static void askUserForVideo(string userInput) { string videoFilePath = "video.csv"; VideoFile videoFile = new VideoFile(videoFilePath); // Add video Video video = new Video(); string tempInput = ""; // ask user to input video title System.Console.WriteLine("What is the video titled"); video.videoTitle = System.Console.ReadLine(); System.Console.WriteLine("What is the video format?"); video.videoFormat = System.Console.ReadLine(); System.Console.WriteLine("How many minutes long is the video?"); video.videoLength = int.Parse(System.Console.ReadLine()); // check if the title matches another title if (!videoFile.hasSameTitle(video.videoTitle)) { do { // ask user to enter region System.Console.WriteLine("Enter a Region (type '.' to stop) "); tempInput = System.Console.ReadLine(); video.videoRegions.Add(tempInput); } while (tempInput != "."); //video never gets created if the title matches another videoFile.AddVideo(video); } }