Thread: help withcreating sequential text file

  1. #46
    Registered User
    Join Date
    May 2008
    Posts
    72
    but as you can see from the previous post containing the whole program the fill_account is actually fillinng the file+ the account_write functions so what should i do to delete this program (read and write works but not delete)

  2. #47
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by overlord21 View Post
    but as you can see from the previous post containing the whole program the fill_account is actually fillinng the file+ the account_write functions so what should i do to delete this program (read and write works but not delete)
    I would recommend not deleting the file with all your records in it before you try to read them in.

    All the w modes immediately delete the file, if it already exists. So don't use a w mode.

  3. #48
    Registered User
    Join Date
    May 2008
    Posts
    72
    only for the delete? i just use a "w" or "r" operator?

  4. #49
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by overlord21 View Post
    only for the delete? i just use a "w" or "r" operator?
    Since the only thing you do in this function is read, you would use "rb".

  5. #50
    Registered User
    Join Date
    May 2008
    Posts
    72
    well i noticed that this function empty all the file but what i would like to is to is deleting one chosen account by making modification in t[i] and then copy the changes to the file(fwrite maybe)?

  6. #51
    Registered User
    Join Date
    May 2008
    Posts
    72
    please can anyone provide a little program using stacks (push & pop)? and another for postfix notation

  7. #52
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by overlord21 View Post
    please can anyone provide a little program using stacks (push & pop)? and another for postfix notation
    Is there a good reason why we should? Why do you expect we can do any better than the hundreds that are already on the web?

    And why tack this on to the end of this thread?

  8. #53
    Registered User
    Join Date
    May 2008
    Posts
    72
    i'm so sorry i am just beginner and thought " well you can learn from more expert people if you can interact with them" but well your answer shows the opposite

  9. #54
    Registered User
    Join Date
    May 2008
    Posts
    72
    just thought writing this last post would attract someone to respond instead of creating a new thread

  10. #55
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    If you know the people on this forum who are like me well (which you clearly do not) you would know me, matsp, and tabstop make mad dashes to be the first to reply to an unanswered question. Which is why the three of us so frequently give such highly redundant answers. By changing the topic around all you do is disrupt the flow of answers to the original poster's question. Which is not very fair to the original poster, now is it?

  11. #56
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by overlord21 View Post
    just thought writing this last post would attract someone to respond instead of creating a new thread
    Why would you think someone would say "oh here's post 47 about sequential files, maybe it will be about postfix notation" instead of "oh here's post 47 about sequential files, isn't that topic done already?"

    And as you could have learned from this very thread, the more work you show going into the question, the more work we show going into the answer.

    So if you want to know something about postfix notation, or stacks, then create a new thread -- WITH actual questions, not "why won't anybody give me teh cod3z for a stack?"

  12. #57
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Heh... its as if all the hostile remarks I fought off saying flowed through the internet into tabstop's finger tips and made his remarks extra cutting. I like it

  13. #58
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by master5001 View Post
    Heh... its as if all the hostile remarks I fought off saying flowed through the internet into tabstop's finger tips and made his remarks extra cutting. I like it
    I can take on either side of good cop, bad cop; but bad cop is more fun

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  2. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 04:49 PM
  3. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM
  4. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM

Tags for this Thread