I have a string of several hundred bytes and some Int32 values. I want to write these to a file, verbatim.
I have tried many suggested solutions and none have worked for me. I get extraneous brackets or spaces or commas in the file.
Can anyone suggest a simple, reliable solution?
I thought my question was very clear, but after reading the comments, I have simplified it.
How do I write and/or append "12345" to a file so that the file contains the following Hex values: 3132333435 ?
The best result I can obtain is <3132333435>, by writing an NSData string.
I can get the desired result using this link: Does swift have a protocol for writing a stream of bytes?, but I cannot append data to the file I have created.