View previous topic :: View next topic
|
Author |
Message |
subramanianup Warnings : 1 New User
Joined: 18 May 2005 Posts: 46 Location: Bangalore, INDIA
|
|
|
|
I am using same file status for all the four files, at any point of time in the program if I check for the condition ?IF file-staus=??, Which file is that going to refer to? |
|
Back to top |
|
|
vikasc4
New User
Joined: 11 Dec 2005 Posts: 32
|
|
|
|
HI,
The last file on which the operation(OPEN, CLOSE, READ, WRITR etc.) have been performed.
I think you have given the paper for Satyam computers in delhi, ya?
regards
Vikas |
|
Back to top |
|
|
Aji
New User
Joined: 03 Feb 2006 Posts: 53 Location: Mumbai
|
|
|
|
hi
The last file on which any file based operation is done.
Regards
Aji Cherian |
|
Back to top |
|
|
fixdoubts
New User
Joined: 21 Oct 2005 Posts: 54
|
|
|
|
Hi,
If you use the same file status for more than one file
the variable will be over written with the latest file related operation
of any of those files.
Regards, |
|
Back to top |
|
|
fixdoubts
New User
Joined: 21 Oct 2005 Posts: 54
|
|
|
|
I meant the status will be over written with the status of the
latest operation done on the one of the files for which you are using the
same status variable. |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
Hi,
It will be the latest operation file status. Every time it will be overwritten by the latest opration file status. so it belongs to the file on which the latest file opration has been performed. |
|
Back to top |
|
|
|