Thread: reading characters from a file

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    18

    reading characters from a file

    if i start reading individual characters from a text file having the following content:


    "music, Indian classical dance, and other aspects of Indian
    culture.

    It is also a movement with chapters in
    over 200 towns and"

    what are the characters that will be read after the word 'culture.' ?

    will it be '\n' , '\n' , 'I' and so on

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Two newlines - '\n'. On Windows PC's each newline will be changed into a CR/LF combination of chars.

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    18
    is there a condition for checking for paragraph breaks??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. reading file characters into an int array
    By spongefreddie in forum C Programming
    Replies: 9
    Last Post: 10-28-2010, 12:23 PM
  2. Reading special characters off a file
    By Quillion in forum C++ Programming
    Replies: 8
    Last Post: 02-16-2010, 12:15 PM
  3. Reading a file with Courier New characters
    By Noam in forum C Programming
    Replies: 3
    Last Post: 07-07-2006, 09:29 AM
  4. reading characters in a file
    By jane in forum C Programming
    Replies: 2
    Last Post: 03-25-2003, 07:10 AM
  5. Reading in the last few characters of a file problems
    By dfb78 in forum C++ Programming
    Replies: 3
    Last Post: 05-05-2002, 06:56 PM