hi.. i'm writing a program where a file contains a set of phonenumbers. when a customer buys a number that particular number has to be deleted from the file. i'm able to delete that number but when the next customer comes that number is still available. even though the number is not available in the file i dont know why its still appering when the next customer asks for that number.. can any1 help me with it ...
rashmideesh 0 Newbie Poster
Recommended Answers
Jump to PostPerhaps you TRIED to delete the phone number, and didn't really succeed, or the number is stored in memory. Or it's a Zombie phone number! ;)
A thought: if you write data to a file, and the disk holding the file is set up for disk caching (the default …
Jump to PostThen I surmise that your program either includes numbers that are not assigned, (i.e. blank), as available numbers, or it rebuilds it's list of available numbers, each time it starts, with blank numbers being restored and put as available.
Sometimes, when you have a record, and you want to …
Jump to PostCan you quickly edit the program, highlight the code, and click on the CODE icon in the editing window?
Almost impossible to study code, that is smashed over all to the left hand side like html text.
Jump to PostStill can't read the code with 20 TABs for indentation.
Convert all your TABs to 4 spaces which is a standard spacing for code. You might want to see this
All 14 Replies
Adak 419 Nearly a Posting Virtuoso
rashmideesh 0 Newbie Poster
Adak 419 Nearly a Posting Virtuoso
rashmideesh 0 Newbie Poster
rashmideesh 0 Newbie Poster
Adak 419 Nearly a Posting Virtuoso
rashmideesh 0 Newbie Poster
Adak 419 Nearly a Posting Virtuoso
rashmideesh 0 Newbie Poster
rashmideesh 0 Newbie Poster
rashmideesh 0 Newbie Poster
rashmideesh 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Adak 419 Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.