Read string in Objective-C console application? <p>What is the best way to read string input from a simple Objective-C console application?</p> <p>I would just like to store the input as an NSString variable.</p> <p>I've seen multiple people post about <code>scanf</code>, <code>gets</code> and others, but they everyone seems to say that they're "unreliable", or "open to attack".</p> <p>I can see how this could be true for <code>gets</code> but I'm looking for the best possible way to do this.</p> <p>Thanks!</p>