well error found cos i think i open the file using Code: ifstream file(.......) is there any other method?
ifstream file(.......)