|
-
Aug 16th, 2011, 06:20 PM
#15
Thread Starter
Hyperactive Member
Re: Can you help me find a good starter tutorial on databases?
 Originally Posted by moti barski
if your program is for a pc then use text files
8 save text file:
8.1 Imports System.IO (1st line of code)
8.2
Code:
If File.Exists("path string") Then
File.Delete("path string")
File.Delete("path string")
End If
instead of using imports.io you can use in the code: io.file.
8.3 File.WriteAllText(pathString, dataString) '
8.4 to read txt file :
File.ReadAllText(pathString)
if the program will move on to an asp.net site use sql
Sorry, I don't understand what this is supposed to do, so I can't even try to figure out how it works...
sorry, can you be a little more (talking to an idiot)-ish 
Hold on... reread it about 25 times before I (think I) got it...
Instead of a single database file, you're suggesting that I create a seperate file for each entry? then using file search to find each entry, and reading the file to get the data?
not only does this sound extremely inefficient, but it sounds like I would be scolded by any half self respecting programmer... shouldn't I use this simple program to learn the basics of database programming, rather than doing the workaround? (which is what I would have done 10 years ago in VB3... actually, now that I think about it, I did do that)
there's also the fact that I may wish to add more data to the dataset later in my program development... which would be easier than single files, because I could use one entry vs, multiple files...
Last edited by stepdragon; Aug 16th, 2011 at 06:33 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|