Jump to content

C++ help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
deen

deen

    Newbie

  • Members
  • Pip
  • 2 posts
i am very new to C++, i have assignment to be done
but i want to know how to read a prticular line from a file .txt
if the user type 3
the program should show the value of line three
please see the attached notes thanks you and reply me personnally.

one is the text file used for this program and the other one is the information of the program.

thank you so mush for the kind soul who will be helping me...
thanks a lot.

Attached Files



#2
Hexes

Hexes

    Newbie

  • Members
  • Pip
  • 2 posts
Let's see
Posted Image

#3
mindsurfer

mindsurfer

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
did you try first? show us your source... maybe then we can help ya.
MindSurfer

#4
Victor

Victor

    Programmer

  • Members
  • PipPipPipPip
  • 116 posts
Not sure if this will help since it's something I found for Linux,
C++ text file line by line/each line to string/array - LinuxQuestions.org

If not, do a Google for C++ I/O and line reading