as you know this code saves the sentences that i type
after compile it just saves the sentences that have been typed in DOS.
is there any way to save the sentences that do not type in dos?
because i want use this code as a keylogger
tnx all and sry my english is not good :X
int main ()
char ch ;
printf ("Enter your sentencE: ");
txt = fopen ("C:\\Users\\4N\\Desktop\\dev\\a.txt", "w");
fprintf (txt, "%s", ch);