[swift-users] file io in Swift 2.2 for Linux (would like to be pointed in the right direction)
Quinn "The Eskimo!"
eskimo1 at apple.com
Thu May 19 02:58:01 CDT 2016
On 18 May 2016, at 23:02, John Myers via swift-users <swift-users at 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
More information about the swift-users
mailing list