writeData will write out data structures in the format described for readData. The following example demonstrates how one can write a string "foo" into a file "writeDataPrimitive.out":
In this page (written and validated by A. Gawali) you learned about Swift writeData . What's Next? If you are interested in completing Swift tutorial, your next topic will be learning about: Swift Configuration.