"As [the biological father] concedes, there was no agreement before [the child's] birth that he would be on the register when he agreed to donate his sperm."
The judge said the man and the child obviously had a strong emotional attachment.
"I have considerable sympathy for [the man] - he has done what he considers has been his very best for the child."
Outside court, the man, who cannot be named for legal reasons, said he was devastated and labelled the outcome an injustice. "She's not my daughter as far as the law is concerned," he said.
"The laws are totally inadequate, there are no laws to protect people like me.
"It's a very bad day for fathers, that's all I can say."
- AAP