Originally Posted by nadroj
im sure this has come up before, search either here or another search engine. i quickly seen a neat way of doing it, store it as a char array. since it would be a pain to type somethign like: char pi[] = {'3','.',etc',, id imagine it would be feasible with file i/o..
ie, save a file with the value of pi in it. write a seperate program to read in that file, char by char, and create an output file that would create the code for you.
example input file:
3.14etc
example output file:
char pi[] = {'3','.',... etc
you can then use this second file and paste it to your code... however the line would be incredibly long if you were to actually do it to 32m..