//Declare and init variable of text reader and specify the file full path
System.IO.TextReader tr = new System.IO.StreamReader("c:\\myFile.txt");
//check if file has data (not empty)
//Peek() get the next char and return -1 if EOF
if (tr.Peek() > -1)
//Close the file
and I have another question little bit far from my first question , I used to program in c++ and I recently move to c# but I have never programmed windows application , so if I declared any class does it have to be inherited from Form ??
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...