Los Angeles , California ( CNN ) -- A man accused of surreptitiously taping ESPN sports reporter Erin Andrews in the nude through hotel peepholes , and posting the videos online , will plead guilty to a federal stalking charge , according to a court document filed Thursday .