help

This is a discussion on help within the C Programming forums, part of the General Programming Boards category; Im making a program to read data into a string and then search the string for data and then extract ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    16

    Question help

    Im making a program to read data into a string and then search the string for data and then extract it.
    Im using fread to read the data but how do i search and extract info from the string?

  2. #2
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259
    use a loop to look trough the elements of the string one by one?

    (not entirerly sure what you mean)
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    16
    Well, Im trying to make this program so that it reads through a file. and finds the data it needs, when it gets to this data, it puts it in a float array.
    Basically, I need it to search for more than one object in the array and i need it to search for something that takes up an unknown amount of objects.
    If this can be done without converting the file to an array let me know.

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    16
    Sorry my post seems to have confused you guys...
    The file itself is technically a text file....
    but i need to find info i dont where it is.
    I know what it might look like but i dont know where.
    Is there some code that could search through an array and tellme where the part which i need is?

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    16
    new question
    i want to make a table using infor from a string, how do i do that?

  6. #6
    Registered User
    Join Date
    Jul 2003
    Posts
    102
    char *str[MAX_STRINGS];
    Saravanan.T.S.
    Beginner.

Popular pages Recent additions subscribe to a feed

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