convert bits into dec value and then store the ascii character of this value into your array
(for example 00110001(bin)-->49(dec)--->'1'(ascii char) )

Code:
..........
    char a=49;
    printf("\n a=%c",a);
..............
check here for code related to convert bin to dec
http://www.daniweb.com/code/snippet216372.html#

Last edited by virxen; 20Apr2010 at 17:51..