Thread: Specifying Line Numbers

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Montreal, Quebec

    Specifying Line Numbers

    I know this has been asked numerous times. But, none of the answers were direct. How do you specify line numbers in strings? Or from .txt files?

  2. #2
    Registered User
    Join Date
    Mar 2002
    From what I've heard, you can't.
    You'll have to start at the beginning of a file and go down as many lines as the line you want to end up...
    There has to be some better solution though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with reading numbers from the command line
    By Nterpol in forum C Programming
    Replies: 4
    Last Post: 06-01-2006, 01:40 AM
  2. Help displaying line numbers of a text document
    By Japatron in forum C Programming
    Replies: 4
    Last Post: 05-04-2006, 01:34 PM
  3. Could somebody please help me with this C program
    By brett73 in forum C Programming
    Replies: 6
    Last Post: 11-25-2004, 02:19 AM
  4. Showing Line Numbers in MSVC++
    By drdroid in forum Windows Programming
    Replies: 1
    Last Post: 01-09-2003, 03:23 PM
  5. SSCANF help
    By mattz in forum C Programming
    Replies: 7
    Last Post: 12-10-2001, 04:53 PM