D - Truncate file
- Vathix (6/6) Jun 21 2003 I think the phobos should contain a function for truncating a file.
- Walter (5/11) Jun 22 2003 I'll add a truncate function to the todo list. -Walter
- Georg Wrede (13/17) Jun 22 2003 A lightweight, D-specific database module would certainly
- Vathix (5/22) Jun 23 2003 Well, I decided to take your advice.
I think the phobos should contain a function for truncating a file. I was able to write a whole database module using just the phobos except for truncating the file! I'm considering donating my database code to Digital Mars but I don't know if it is good enough yet. I'd like to know who is interested. The data is stored like a file system and items are loaded into an associative array so it should be efficient.
Jun 21 2003
I'll add a truncate function to the todo list. -Walter "Vathix" <Vathix dprogramming.com> wrote in message news:bd153o$1a8b$1 digitaldaemon.com...I think the phobos should contain a function for truncating a file. I was able to write a whole database module using just the phobos exceptfortruncating the file! I'm considering donating my database code to Digital Mars but I don't know if it is good enough yet. I'd like to know who is interested. The data is stored like a file system and items are loadedintoan associative array so it should be efficient.
Jun 22 2003
"Vathix" <Vathix dprogramming.com> wrote in messageA lightweight, D-specific database module would certainly be welcome! While heavier stuff will use an external SQL database in most applications, there's still need for an easier solution for the lesser data amounts needed for smaller or non-data-intensive applications. And quick prototyping! I don't think you should wait till your code is "good enough". (I know, I've had quite a few bits of code I never submitted anywhere because I thought it was embarrassing to submit sub-par code.) So go ahead! With everybody fixing bits and pieces of the code we'll soon have a Good Enough database!! Remember the Force of Sharing! (Linus Torvalds' code sure wasn't "good enough" when he put it on the Net!)the phobos except for truncating the file! I'm considering donating my database code to Digital Mars but I don't know if it is good enough yet.
Jun 22 2003
Well, I decided to take your advice. Here is my database code so far www.dprogramming.com/db.php I have not tested it much yet. "Georg Wrede" <Georg_member pathlink.com> wrote in message news:bd3vvn$oeq$1 digitaldaemon.com..."Vathix" <Vathix dprogramming.com> wrote in messageA lightweight, D-specific database module would certainly be welcome! While heavier stuff will use an external SQL database in most applications, there's still need for an easier solution for the lesser data amounts needed for smaller or non-data-intensive applications. And quick prototyping! I don't think you should wait till your code is "good enough". (I know, I've had quite a few bits of code I never submitted anywhere because I thought it was embarrassing to submit sub-par code.) So go ahead! With everybody fixing bits and pieces of the code we'll soon have a Good Enough database!! Remember the Force of Sharing! (Linus Torvalds' code sure wasn't "good enough" when he put it on the Net!)the phobos except for truncating the file! I'm considering donating my database code to Digital Mars but I don't know if it is good enough yet.
Jun 23 2003