Certo puoi usare la gets (sta get string). Occhio che a fine stringa ti mette un '\n' tienine conto.Leggiti la doc in proposito ovviamente.