Thread: Basic file handling - again!

  1. #31
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Adak View Post
    This is the part that I thought was a bit much with using findFirst(), (which of course, WAS part of Turbo C, along with findNext(), long before they were made part of the Windows API, just for your edification).
    Naaa... the problem has nothing to do with FindFirstFile() or FindNextFile()... the problem is the way he's conceived the job...

    He needs to work on methods that don't rely on things beyond his control... like files needing to be in a certain order, or dates that change with every entry... He's just asking for a mess...

  2. #32
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Seems, to my Flintstone brain at least, that he could use the archive bit to good effect here. When the data file has been entered, mark that file by setting it's archive bit.

    In the file handling (your way or mine), you only see and/or work, with the files that do not yet have the archive bit set.

    Simple to use, and no sorting or comparing of filenames or file dates, is needed.

    Now, where is my Secretary bird at?

  3. #33
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Actually... that's not a bad idea Adak... although the read only bit might be more effective... mark the file and prevent modifications all in one go.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File Handling -Read write and edit a file
    By aprop in forum C Programming
    Replies: 3
    Last Post: 02-27-2010, 02:01 PM
  2. basic file handling problem
    By georgen1 in forum C Programming
    Replies: 4
    Last Post: 03-05-2009, 06:21 AM
  3. BAsic problem with error handling in sdl using printf
    By redwing26 in forum Game Programming
    Replies: 2
    Last Post: 08-01-2006, 05:45 AM
  4. handling basic math functions
    By MyDestiny in forum C++ Programming
    Replies: 3
    Last Post: 03-02-2005, 01:12 PM
  5. File Handling?!?
    By Twiggy in forum C Programming
    Replies: 1
    Last Post: 10-23-2001, 11:43 AM