Hi Jeya Rani, welcome to DaniWeb.
First: Don't resurrect old threads.
Start a new thread with your question and refer to this thread with a link, if you want to.
To answer you question, try this:
/// Read an integer from the console
/// Return 0 if no success(perhaps MaxInt?)
/// <param name="prompt">descriptive message</param>
/// <returns>an integer</returns>
public int readInt(string prompt)
string line = Console.ReadLine();
if (int.TryParse(line, out quantity) == false)
quantity = 0;
i am trying to create a library management system which is supposed to be used to store/keep infp for the library and the library members( book title, author, name and picture for borrower and other stuffs). The app has 6 buttons, delete, save, add,previsous,next, and upload( for upload ...