code read file *.prc

This is a discussion on code read file *.prc within the C Programming forums, part of the General Programming Boards category; I want to code program read file *.prc but I don't know struct file who know help me ! only ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    9

    code read file *.prc

    I want to code program read file *.prc but I don't know struct file who know help me !
    only read file *.prc !

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    *.prc might actually indicate a lot of files and you will need code to resolve it to individual filenames... This means using 3rd party or addon libraries for C with commands like FindFirstFile(), FindNextFile(), etc.

    Once you have a list of names you can begin opening them one at a time and dealing with them per your needs with commands like fopen(), fread(), fwrite() etc.

    Parsing directories is not a trivial task and it's a little different on each operating system, so you will need to know exactly which libraries to get/use...

    Do some reading up, work it out on paper, write some preliminary code and post it up... from there we can help you.

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    9
    Thanks ! I will code it !
    Quote Originally Posted by CommonTater View Post
    *.prc might actually indicate a lot of files and you will need code to resolve it to individual filenames... This means using 3rd party or addon libraries for C with commands like FindFirstFile(), FindNextFile(), etc.

    Once you have a list of names you can begin opening them one at a time and dealing with them per your needs with commands like fopen(), fread(), fwrite() etc.

    Parsing directories is not a trivial task and it's a little different on each operating system, so you will need to know exactly which libraries to get/use...

    Do some reading up, work it out on paper, write some preliminary code and post it up... from there we can help you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Humorous Code
    By DavidP in forum General Discussions
    Replies: 16
    Last Post: 08-28-2010, 11:40 AM
  2. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  4. << !! Posting Code? Read this First !! >>
    By biosx in forum C++ Programming
    Replies: 1
    Last Post: 03-20-2002, 12:51 PM
  5. << !! Posting Code? Read this First !! >>
    By biosx in forum C Programming
    Replies: 1
    Last Post: 03-20-2002, 12:51 PM

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