/* priklad pr8_2.c  vystup po znakoch   */
#include "stdio.h"

void main(void)
{
  FILE *fp;
  char others[35];
  int  indexer,count;

  strcpy(others,"Pridane riadky.");
  fp = fopen("s.txt","a"); /* open for appending */
  for (count = 1;count <= 5;count++)
  {
    for (indexer = 0;others[indexer];indexer++)
    /*    kym others[indexer] != 0      */
    putc(others[indexer],fp); /* output a single character */
    putc('\n',fp);        /* output a linefeed */
  }
  fclose(fp);
}