I read a short story online a while back which starts off with a guy being in the dark and asking where he is and panicking, and then a scientist starts asking him questions but he is super freaked out. Eventually he finds out that he is actually a consciousness on a disk that was donated by his body for a lot of money, and when he can't answer their questions well they restart him.
The story was written in a terminal type format, with the name of the character followed by :
then dialogue. E.g.
< name here > : < what he says >
and the background of the page online was command line-esque.
I found this story on a blog, so I believe its not written by a major writer. Most likely amateur fiction.