photonbuddy Posted September 24, 2005 Posted September 24, 2005 Hi All, I am writing a script that will need to store a large (possibly several thousand) number of filenames, with their size, and a couple of other flags. Just wondering what the best solution to this would be. I could just write them out to a standard text file, but that would make it much slower when updating information in the database. Any ideas/suggestions would be greatly appreciated.
flyingboz Posted September 24, 2005 Posted September 24, 2005 I am writing a script that will need to store a large (possibly several thousand) number of filenames, with their size, and a couple of other flags.Just wondering what the best solution to this would be."best" is a highly subjective term. Straight text is slow but straightforward to code, but a database has its own overhead to consider, plus you lose the ability to just read your data directly.The Ini* functions would give you everything you need to store your values and variables in an easy to read format.If you want to go to a structured format, you can consider XML or the database of your choice, either manually or using COM interfaces. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
Valuater Posted September 24, 2005 Posted September 24, 2005 i agree with flyingbozadditionally... this is a format i find usefullfilename.csv1,File.txt,2/15/2005,1545 bytes,by autoitthis is comma delimitedis recognized and can be read & sorted by microsft excelin autoit you can use this idea wirth stringsplit$days = StringSplit("Sun,Mon,Tue,Wed,Thu,Fri,Sat", ",") ;$days[1] contains "Sun" ... $days[7] contains "Sat" for $x = 1 to $days[0] MsgBox(0,"test", " The Day is " & $days[$x] & " ") Nextfor a whole file you can use read to arrayjust some ideas8)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now