[swift-users] String Comparisons in Swift

2016-06-02 Thread John Myers via swift-users
I've had some difficulty comparing string variables to string constants with ==. I believe it's always after using a readLine(). Does Swift require a .equals() or a .compareTo(), as other c like languages, or are there invisible characters in my string because of the readLine() which I need to st

Re: [swift-users] swift-users Digest, Vol 6, Issue 28

2016-05-30 Thread John Myers via swift-users
Is there a way to format the text in the following link that appeared in today's digest? The code toward the bottom is all run together. I would edit to correct it if that were possible. Thanks! On Mon, May 30, 2016 at 12:00 PM, wrote:

[swift-users] File IO in Swift for Linux

2016-05-20 Thread John Myers via swift-users
I've just finished reading a very spirited debate on the merits of streaming versus reading in an entire file. I'm convinced that both are ideal depending on the situation. Thank you for the responses I received on my original post. I had tried previously on StackOverflow, having joined just for

[swift-users] file io in Swift 2.2 for Linux (would like to be pointed in the right direction)

2016-05-18 Thread John Myers via swift-users
I've been having trouble figuring out how to read and write data to a textfile, and not finding much out there for Swift on Linux. I found code for reading data from a file on StackOverflow that works for me, but cludged together my own code for writing to a file. I'm not sure exactly what I'm do