Thread: Help Reading File Line By Line On Windows?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2014
    Posts
    6

    Help Reading File Line By Line On Windows?

    Hello everybody,

    I was just wondering if someone could give me example code on how to read a file line by line and then later access them by doing something like

    Code:
    lines[0] //Line number one
    ...
    lines[100] //Line number one hundred and one
    lines[100][0] //L
    lines[100][1] //i
    lines[100][2] //n
    lines[100][3] //e
    lines[100][4] // 
    lines[100][5] //n
    ...
    I've been trying to figure this out for a long time and still just can't get this.

    Anyone who can help you'd be greatly appreciated!
    Last edited by new2c95; 10-13-2014 at 08:52 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems while reading a file line by line
    By tinchi in forum C Programming
    Replies: 9
    Last Post: 08-17-2014, 12:10 PM
  2. Replies: 6
    Last Post: 06-07-2012, 02:50 AM
  3. Replies: 7
    Last Post: 12-13-2010, 02:13 PM
  4. reading words line by line from a file
    By -EquinoX- in forum C Programming
    Replies: 3
    Last Post: 05-04-2008, 12:34 AM
  5. reading a file line by line and char *
    By odysseus.lost in forum C Programming
    Replies: 8
    Last Post: 05-31-2005, 09:47 AM

Tags for this Thread