edit:
Or just using the standard "gets" function really. There's an example on StackOverflow here: http://stackoverflow.com/questions/3026361/performing-simple...