rahul gupta

rahul gupta

  • NA
  • 1
  • 1.1k

file operation error

Mar 16 2014 4:28 PM
Could not fin




Locating source for 'C:\Users\NITESH\AppData\Local\Temporary Projects\file_operation\Program.cs'. Checksum: MD5 {13 a9 32 99 5d d0 ab 53 58 88 9e cd 2d 73 f2 b5}
The file 'C:\Users\NITESH\AppData\Local\Temporary Projects\file_operation\Program.cs' does not exist.
Looking in script documents for 'C:\Users\NITESH\AppData\Local\Temporary Projects\file_operation\Program.cs'...
Looking in the projects for 'C:\Users\NITESH\AppData\Local\Temporary Projects\file_operation\Program.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\vc7\atlmfc'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\vc7\crt'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: C:\Users\NITESH\AppData\Local\Temporary Projects\file_operation\Program.cs.
The debugger could not locate the source file 'C:\Users\NITESH\AppData\Local\Temporary Projects\file_operation\Program.cs'.






using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace file_operation
{
    class Program
    {
        static void Main(string[] args)
        {

            string text = "";
            StreamReader file1 = new StreamReader("TextFile1.txt");
            while (file1 != null)
            {
                text =  myReader.ReadLine();
                if (text != null)
                    Console.WriteLine(text);
            }
            myReader.Close();
            Console.Read();

           

           
        }
    }
}


d file 'C:\Users\NITESH\documents\visual studio 2010\Projects\file_operation\file_operation\bin\Debug\file_secret'.

Answers (1)