#include <stdio.h>

char test[] = "y.dat";

unsigned char data = 0xaa;

main()
{
  FILE *f;

  f = fopen(test, "wb");
  putc(data, f);
  fclose(f);
}