The High Court on Monday directed the government to file an affidavit on action taken to protect lakes in Anekal taluk in Bangalore Urban district.