On 18 May 2016, at 23:02, John Myers via swift-users <swift-users@swift.org> 
wrote:

> I've been having trouble figuring out how to read and write data to a 
> textfile …

Your examples show you transferring the data line-by-line.  Is that the end 
goal?  Or just fallout from what you happened to get working?

The reason I ask is that most of the time when I mess around with files I 
transfer the entire file to and from memory, which is something that the 
Foundation APIs excel at.  OTOH, there are times when line-by-line is necessary.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to