#include <stdio.h>
#include <string.h>

char ReadChar(FILE *WhatFile,  long Where)
{
  char temp;

  fseek (WhatFile, Where, 0);
  temp=fgetc(WhatFile);
  fseek (WhatFile, Where, 0);
  return temp;
}

void WriteChar(FILE *WhatFile,  long Where, char What)
{
  fseek (WhatFile, Where, 0);
  fputc (What, WhatFile);
  fseek (WhatFile, Where, 0);
}

long GetSizeOfFile(FILE* WhatFile)
{
  long temp=0;
  fseek (WhatFile, 0, 0);
  while (!feof(WhatFile))
  {
    temp++;
    (void) fgetc(WhatFile);
  }
  fseek (WhatFile, 0, 0);
  return temp;
}
