Police officer guilty of gross misconduct after viewing file