Info-Mac Archive Downloads: dev/lib/

Back to dev/lib/

String I/O Lib (string-io-lib-109.hqx)

Download string-io-lib-109.hqx (5,497 KB)


From: doug@apple.com (Douglas Turner)
Subject: String I/O Lib

Routines for importing and exporting longer than 255 C string to and
from resources.

Simply declare your string, and when you want to write it to disk, call:

OSErr WriteStrToResource(const char theString[], short ResID);

When you want to read a string into memory, you just need to call:

OSErr ReadStrFromResource(char outStr[], short ResID);

If you have any question or problems, you can email me at dturner@best.com

Douglas Turner
Email address: dturner@best.com