A text... No.
If your going to try and salvage anything from this it has to be done face-to-face.
As for the reason she told one of her friends she hates all boys it could be because she did like you and was shocked that you asked her out then the next day you turn around and literally say "forget about it" says to her that you don't care and only wanted to go out with her for the sake of it.
Damn I should write a book on this crap, call it "Common sense, are you missing some?".