Thread: string input from files

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    7

    how do I input strings from a file

    I need to read from a file, line by line, the text has blanks in it, I need to know the number of characters per line(included the blanks). I tried using getline, get, so that i could store a line in a string to work on it, but get and getline dont work with an ifstream variable, or at least i dont know how to do it.
    Last edited by jriano; 06-01-2003 at 01:25 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 02:20 PM
  2. Replies: 6
    Last Post: 01-03-2007, 03:02 PM
  3. Custom String class gives problem with another prog.
    By I BLcK I in forum C++ Programming
    Replies: 1
    Last Post: 12-18-2006, 03:40 AM
  4. can anyone see anything wrong with this code
    By occ0708 in forum C++ Programming
    Replies: 6
    Last Post: 12-07-2004, 12:47 PM
  5. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 11:06 PM