Thread: making much progress with encryptor

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    206

    making much progress with encryptor

    The reason why your suggestions on skipping spaces and returns werent working is for one reason. When i use fin>>plaintext; it gets up until a soace, and stops. has nothing to do with ciphering.

    so will someone please tell me how to make

    Code:
    	ifstream fin(file);
    	fin >> plaintext;
    into a script that takes \n and space too? thanks in advance

  2. #2
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Use ifstream::getline(char, length, delimiter);

    eg.

    ifstream fin("filename.txt");

    char happyChar[255];

    fin.getline(happyChar, 255, '\n');

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Displaying Progress.
    By samus250 in forum C Programming
    Replies: 15
    Last Post: 04-11-2008, 03:56 PM
  2. Creating a progress window
    By Xzyx987X in forum Windows Programming
    Replies: 6
    Last Post: 10-06-2004, 04:02 PM
  3. progress bar newbie
    By WaterNut in forum Windows Programming
    Replies: 18
    Last Post: 08-09-2004, 01:42 PM
  4. Progress bars in XP
    By Hunter2 in forum Windows Programming
    Replies: 2
    Last Post: 09-27-2003, 11:47 AM
  5. Progress Bars
    By knight543 in forum Windows Programming
    Replies: 1
    Last Post: 08-21-2002, 10:45 AM