View previous topic :: View next topic
|
Author |
Message |
gowtham_1982 Warnings : 1 Active User
Joined: 02 Dec 2005 Posts: 109
|
|
|
|
hai all ,
i need a clarification. suppose that i've a file. the file has only one record. will the end of file condition be set after the first successful read or the after the second attempt to read the file and identifying that there are no more records.
expecting responses..
gowtham |
|
Back to top |
|
|
raghunathns
Active User
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
hi,
first read is success.
second read gives end of file |
|
Back to top |
|
|
Aji
New User
Joined: 03 Feb 2006 Posts: 53 Location: Mumbai
|
|
|
|
Hi Gowtham,
Check the end of file condition after every read.
Regards
Aji Cherian |
|
Back to top |
|
|
sbalajibe
New User
Joined: 15 Aug 2005 Posts: 62
|
|
|
|
hi gowtham,
End of file will be determined by the file status variable that u declare in the select clause
for EOF the value would be 10 means record not found......
thanks
Balaji |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
Hi,
It will check the EOF status after each successful read. If not reach then it will continue otherwise it will stops reading the file. |
|
Back to top |
|
|
pratibha patre
New User
Joined: 02 Feb 2006 Posts: 2
|
|
|
|
As there is only one record it will read the particular record and return back. correct me if i am wrong. |
|
Back to top |
|
|
balajiofcrrcoe
New User
Joined: 07 Jul 2005 Posts: 41 Location: chennai
|
|
|
|
Hi,
After successful read of the only one record and in next read the at end clause becomes true.
Regards,
Naga samba siva rao |
|
Back to top |
|
|
|