posted 21 years ago
record is record. If it is deleted logically (with delete flag 1 for deleted, and 0 for active), no need to consider whether the record is deleted. So, deleted record will also get counted. While displaying all active records, index the file pointer to the first position, read the delete flag, if it is active, proceed to read, else, index to next record position, and so on till EOF. If user asks for specific record, say recordNo 5, and if it is logically deleted, display RecordNotFoundException with appropriate exception message.