Can I, or do I have to declare it as a class with it’s own SaveToStream method?
It is only data, no functions (although I might now add getters & setters)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
suppose you have the following record
Now, in order to write the above structure to a stream, you need to:
it is important to note that declaring FirstName as “string” will not save the characters in FirstName, you need to declare FirstName as I did “string[100]” or use a special method to write a string field, for example:
Now, in order to read the “long strings”, you first read the record:
I hope it helps (: