I am New In C sharp,
I am using messagebox to display the line. but it is in a loop so the messagebox display more times i want to display it only one time and message box should not be display for the next time.
try{
using (var sr = File.OpenText("test.txt")){
string newone = 20110501;//date
string line;
while ((line = sr.ReadLine()) != null){
if (three => one){
MessageBox.Show("Buy : " + line);
//Its Displaying more than 50 times i want to displayit only
//onetime and should dispose for the next Time
}
}
}
} catch { }
Thanks In Advance.