<human>: I was sent here from r/askwomen. Both me (m) and her (f) were in our late twenties at the time.

This is actually something that happened years ago, but I've just been thinking about it recently.

I was having dinner with friends, and ended up talking to a female friend (though several of us were there, no one else was present at this particular time). She had been telling us stories about all the various times guys had creeped on her. When it was just me and her she mentioned that she had been raped (this was something that happened years ago). She didn't volunteer any details, and I was kind of caught off guard by the admission.

(to clarify, she told me about this years ago, and the incident itself happened years before that)

I don't remember exactly what I said, it was something like "geez, that sucks, I'm sorry." I'm not sure if those were my exact words but it was something close to that. Thinking about it now it sounds lame and unhelpful, but I was so surprised when she told me that I kind of went into brainfart mode.

After she told me, she changed the subject and didn't bring it up again. I wasn't sure if I should have brought it up again, or done anything. It wasn't as though she'd just been raped, it was something that she said happened years ago, so it didn't seem right to bring up going to the police, and I wasn't sure how much it was appropriate to pry.

I guess I'm just asking in general: is there anything in particular I should have done, or said? I don't know if this is ever gonna happen again but if it does I want to be more prepared.

Summarize the given text in a few sentences.
<bot>: A female friend told me she was raped and then quickly changed the subject, my response was kind of lame, what should I have said?