A homeless New York student says he slept for seven months in a university library without being caught.

Steve Stanzak, 20, says he set up home in New York University's main library because he couldn't afford housing costs on top of his tuition.

He was finally discovered by shocked administrators last week, reports the New York Post.

They found his website, www.homelessatnyu.com, in which he chronicled his undercover life in the Bobst Library on New York's Washington Square.

Stanzak said he washed himself in the library's toilets, had an occasional shower at friends' dorms and kept his clothes and books in lockers.

"It was kind of interesting at first and then it became part of the norm, part of the routine. It was getting quite comfortable," he said.