Capture String from Array, C#
Posted
by Dan Snyder
on Stack Overflow
See other posts from Stack Overflow
or by Dan Snyder
Published on 2010-06-11T16:07:31Z
Indexed on
2010/06/11
16:12 UTC
Read the original article
Hit count: 295
I'm trying to figure out how to get a string from an array starting at some given position. Say we have an array that's arbitrarily long and my string starts at location 1000. If I wanted to get a string from a file I would simply use something like getc or scanf or something. How do I carry out these same functions on an array instead of a file?
*oh, keep in mind that the array is of type int and is full of numerical representations of ASCII characters.
© Stack Overflow or respective owner