You can try to use printf function, and to specify line breaks or tabs you can do
printf("Line of text %c", 10);
printf("%c Line of text following the tab %c", 09, 10);
printf("\t Line of text following tab with new line character \n");
printf gives you more control over format compared to echo or print. Another good idea is to go to google.com and get yourself and ASCII table.
Di
P.S. C rocks over any language!!!