~ User Input script help~

This is a discussion on ~ User Input script help~ within the C Programming forums, part of the General Programming Boards category; Hi all I am new to c programming and i need help with the following logic, what i want to ...

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    21

    Unhappy ~ User Input script help~

    Hi all

    I am new to c programming and i need help with the following logic, what i want to do is to ask user to input details and then process the file e.g

    What I asked you to do was enabling a user to insert a line in a specific part of a text file, i.e.
    You ask user the name of the file,
    You ask user where (line number) s/he wants to insert the line
    You ask user to provide the text for this line


    You then insert this line into the specific part of the file and ask user whether s/he wants to continue or not.


    thanks in advance...indy

  2. #2
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,161

    Re: ~ User Input script help~

    Originally posted by indy
    Hi all

    I am new to c programming and i need help with the following logic, what i want to do is to ask user to input details and then process the file e.g

    What I asked you to do was enabling a user to insert a line in a specific part of a text file, i.e.
    You ask user the name of the file,
    You ask user where (line number) s/he wants to insert the line
    You ask user to provide the text for this line


    You then insert this line into the specific part of the file and ask user whether s/he wants to continue or not.


    thanks in advance...indy
    Input num
    Open input file
    Open output file
    Read num-1 lines, write each
    Ask for input line
    Write the input line
    Ask to continue
    etc.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    21

    ~ code please !!~

    hi walt p

    thanks for the reply, could u please give me some code...thanks...indy

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826

    Re: ~ code please !!~

    Originally posted by indy
    hi walt p

    thanks for the reply, could u please give me some code...thanks...indy
    Read the forum rules. Stop making multiple posts on the same topic. No one here is going to do your work for you. That's not what the forum is here for.

    We assist, we do not hand you your code on a silver platter.

    Quzah.
    Last edited by quzah; 12-02-2003 at 05:02 AM.
    Hope is the first step on the road to disappointment.

  5. #5
    Registered User
    Join Date
    Dec 2003
    Posts
    21

    ~ sorry ~

    sorry folks, i had problems posting...my apologises....thanks...indy

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 01:20 PM
  3. SSH Hacker Activity!! AAHHH!!
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-06-2005, 02:53 PM
  4. Nested Structures - User Input
    By shazg2000 in forum C Programming
    Replies: 2
    Last Post: 01-09-2005, 09:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21