I want to do the following steps one by one
1. check whether given file is exists in the directory or not
2. if exists open the file
3.read the first line and store the values
4. got to the last line of file and store the values
5. close the file
6. if file does not exists come out of the program.
Pls Provide the sample coding to do this..