Thread: How to read multiple lines of input

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    33

    Angry How to read multiple lines of input

    Hi,

    All I want is read input(it can be multiples lines) from console till it encounters EOF character.how can I handle multiple lines of string under one var?

    Actually I tried to read
    while((c=getchar())!=EOF) but it not works

    Thanks,
    Veera
    Last edited by veera; 06-28-2015 at 12:41 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cin >> string // multiple lines
    By msshapira in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2009, 04:39 AM
  2. read multiple lines from a file
    By YankeePride13 in forum C Programming
    Replies: 2
    Last Post: 11-10-2005, 10:30 PM
  3. recv multiple lines
    By TCM in forum Networking/Device Communication
    Replies: 11
    Last Post: 07-13-2004, 04:54 PM
  4. Macros with multiple lines
    By flipper2971 in forum C Programming
    Replies: 2
    Last Post: 11-03-2003, 09:30 PM
  5. Multiple lines on an Edit box
    By RubenJ in forum Windows Programming
    Replies: 3
    Last Post: 09-20-2001, 02:51 PM

Tags for this Thread