Originally Posted by JimmyFeatures
Basically, I want to assign
to a text input.
You still havn't said what language! That narrows it to C++ (Carbon) or Obj-C (Cocoa). When you say text input do you mean from the command line or from a text box on screen (in a window)? If it's from a text box in a window you need to very carefull with this as the string value from that text box will be 16-bit Unicode, whereas your array is for 8-bit chars.
You can do do this in Cocoa with something like:
IBOutlet NSTextView *textView; // Conect in IB
char *array = [[textView stringValue] UTF8String];
This assumes that the text in the text box is a UTF-8 string (i.e. ASCII). The array returned will be null terminated, not 255 bytes long.