Thread: saveing the charecters

  1. #1
    Registered User
    Join Date
    Sep 2012

    saveing the charecters

    hi guys
    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

    #include <stdio.h>
     #include <conio.h>
     int main ()
     FILE *txt;
     char ch [100];
     printf ("Enter your sentencE: ");
     txt = fopen ("C:\\Users\\4N\\Desktop\\dev\\a.txt", "w");
     gets (ch);
     fprintf (txt, "%s", ch);
     getch ();
     return 0;
    tnx all and sry my english is not good :X

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    This thread is closed in view of the forum guidelines: 6. Messages relating to cracking, (erroneously called "hacking" by many), copyright violations, or other illegal activities will be deleted.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how \n is different from other charecters??
    By vapanchamukhi in forum C Programming
    Replies: 5
    Last Post: 09-09-2008, 02:36 AM
  2. Integers and charecters
    By anilk in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2006, 04:56 AM
  3. saveing
    By firefly in forum C++ Programming
    Replies: 5
    Last Post: 07-09-2005, 08:11 AM
  4. saveing moves
    By Neoground1 in forum C++ Programming
    Replies: 7
    Last Post: 10-14-2002, 09:25 PM
  5. stdio.h file loading/saveing
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 01-26-2002, 02:37 AM