WongLib ver 1.0
all right reserved. (not really)
a library devoted to exploring and manipulating files and folders from within you qbasic program!
Hurray!
I've finally decieded to make a library. As of now, it's just a baby, with only 4 commands. I know the qBasic comunity will support newcomers, so I hope you'll contribute! The current commands probably aren't perfect yet, but exams are killing me...
Why I made it:
because I hate hardcoding paths in! IT SUCKS! Programs need a GUI! call me a heretic but I believe it!
Anyways, now users can navigating the startling realms of their computer from a qbasic program. If you ever wanted to make a fake OS, now's is a great chance.
It is still uncompiled! Just load the files, there is need to make real library files, for right now, anyways.
Basically, I disected dir.bas from qbasic.com and figured out how it worked. Then, I wrote my own methods. So if you wrote the original, kudos and thanks, whoever you are.
What I want from you:
This will be an open source project! So, I need your input and ideas. Becuase it's so small right now and not ready to leave the nest, I'm not releasing it. after a few versions, you'll get it!
Anyways, think about your old projects and how WongLib could improve them. Then give me your ideas!
CURRENT METHODS:
1) wPrintDir() - outputs text file of all directory info
2) wFiles$(path$, num, type$) - return the path of the file of type type$ in the numth albhabetical position in directory path
3) wFolders$(path$, num) - return the path of the folder in the numth albhabetical position in directory path
4) wMemAvail() - amount of memory in file left
INCOMPLETE / FUTURE METHODS:
1) wFilesUlti$(path$, num, type$) - wFiles$, but searches in every directoy beneath, as well as path$
2) wMemUsed() - amount of memory used
3) wNum(path$, type$) - number of files of type Type$
4) wNumUlti(path$, type$) - wNum(), but searches every direcotry beneath as well as path$
5) wExist(path$) - returns true if file exists, 0 if not
6) wType(path$) - return type$ of file
7) wCopy(path$) - creates copy of file/folder
wMove(path$) - moves a file/folder
9) wDelete(path$) - delete's a file/folder
10) wDeleteOK(path$) - instead of delete, moves file to a secure location. usefull for debugiing, so you never accidentally fry you file!
* fix methods so they can pass in a wild type$, to access all types of files.
* run-time error checking
*** AND ANYTHING ELSE YOU HEART SO DESIRES!!!
All about me, or
Why I am so amazing:
I'm a comp sci freshman at University of SOuth Carolina. I actually hate Windows. I love my powerbook but I use the crap machines at school just because I have a soft spot for QBasic. ain't it great?!
Darklink246@alltel.net