Posted: Sun Jun 11, 2006 3:28 pm Post subject: Cataloging
Everyone one of you reading this im sure you can relate and have millions of cd's laying around that you have no idea what is even on the cd.
If not .. well then you must be what i am trying to achomplish here.
I'v already started my idea of cataloging my CD's
but i'v come into a delema
im unsure how to sort the cd's and set up the DB for it.
should i have a individual file for each CD that i own .. should i have an individual file for all the (A) CD's and so on ..
Sponsor Sponsor
Clayton
Posted: Sun Jun 11, 2006 3:55 pm Post subject: (No subject)
i dont understand what you are trying to say, are you trying to cataloug the CD's or the songs? if you are catalouging the CD's have a file called the cd's name and in the file it should contain all of the songs on that cd, then you can use some sort of sorting algorithm to sort the cds by name and have some sort of "link" to each of the cds contents from the name
Ninja
Posted: Sun Jun 11, 2006 7:13 pm Post subject: (No subject)
SuperFreak82 wrote:
i dont understand what you are trying to say, are you trying to cataloug the CD's or the songs? if you are catalouging the CD's have a file called the cd's name and in the file it should contain all of the songs on that cd, then you can use some sort of sorting algorithm to sort the cds by name and have some sort of "link" to each of the cds contents from the name
yep . Well im not a pro at turing yet but correct me if im wrong. You should learn records to sort out a database. Im making a databse for my compsci class too as my final project and its much easier using records than arrays. You can find the record tuturial under the turing tutorial section. Its very useful as u can categorize information. Say if you want to make a databse of a student's information. i.e, their name, address and phone number. You can make a text file and put information in columns. What record will do is take the whole column as one catigory. Very useful for databases . Like i said correct me if im wrong
sockoo
Posted: Sun Jun 11, 2006 7:22 pm Post subject: (No subject)
SuperFreak82 wrote:
i dont understand what you are trying to say, are you trying to cataloug the CD's or the songs? if you are catalouging the CD's have a file called the cd's name and in the file it should contain all of the songs on that cd, then you can use some sort of sorting algorithm to sort the cds by name and have some sort of "link" to each of the cds contents from the name
I Want to catalog whats on the Cd's so that later lets say i want to find the song "x" i can type in song "x" and it tells me its on Cd "y"
So would i have to have a datafile for each cd containing the records of the cd?
how would i go about searching 200+ datafiles in that case to find "x" song
Ninja
Posted: Sun Jun 11, 2006 9:22 pm Post subject: (No subject)
yep, you will have to creat a separate file for each CD. For the other question you asked about searching 'x' song in 200+ datafiles, im not sure how to do that yet. i just started learning records today . I know its easy to search something in 1 datafile, but unsure on how to do that with x number of datafiles. Sorry mate, i guess someone with more knowledge about that will help you out
sockoo
Posted: Sun Jun 11, 2006 9:37 pm Post subject: (No subject)
im assuming i would have to search each datafile for song "x"
this may become tidious as more and more Cds are added to the collection and could become time consuming ? correct me if im wrong
Ninja
Posted: Sun Jun 11, 2006 10:26 pm Post subject: (No subject)
Yep. I had to write a small program for homework once a few months back. What i had to do was read in a file names drawer.txt and then ask the user to put an item that he/she wants to search. No since i put all the items in the .txt file into an array of item..all i did was assign a boolean and then each time the user puts an item name, the program scans the whole drawer.txt file, and if the boolean value is returned true, it says "Item found in drawer" if boolean = false then it put "Item not found. So like you said, it will be a lot of code that you will have to write to scan all the files, and it will become more complicated as you add files onto it. Unless theres another way to do it that i dont know about yet
sockoo
Posted: Tue Jun 13, 2006 3:07 pm Post subject: (No subject)
i'v run into a slight problem while trying to program the program.
when i retrive the "x" value of the Cd name from the user and then want to use that "x" value to open up that "x" text file. the text file require a name in quotations so how do i import the random "x" value into those quotations? ..
Example:
code:
get x
open : sn, "records.t", put, seek, mod
Initialy i want to be able to sub the "x" value into where "records.t" is.