D
dtdev
hi,
i have a:
char[] record = new char[100];
In this i am loading a fixedlength record from a file.
What i would like to do, is to copy segments from this array into either
smaller strings or smaller arrays.
In C i would probably do something like this:
strncpy (field1, &record[0],10);
strncpy (field2, &record[10],8);
strncpy (field2, &record[18],20);
How can i do this in C# ?
i have a:
char[] record = new char[100];
In this i am loading a fixedlength record from a file.
What i would like to do, is to copy segments from this array into either
smaller strings or smaller arrays.
In C i would probably do something like this:
strncpy (field1, &record[0],10);
strncpy (field2, &record[10],8);
strncpy (field2, &record[18],20);
How can i do this in C# ?