Getting the highest index in folder
#4

It's bad practice to store files, which should be indexed, like this. We don't know how many files do exist, so you can basicly create a loop going to 2^31, and make yourself coffee (and wait hours or days), while your script still searches for the highest "indexed file" in your directory.

You can use databases, which are just the best option to use for such purposes. Alternatively you can create a table of file names, where you can keep track of all the files inside this directory.
Reply


Messages In This Thread
Getting the highest index in folder - by AlonzoTorres - 21.10.2013, 10:52
Re: Getting the highest index in folder - by RajatPawar - 21.10.2013, 10:59
Re: Getting the highest index in folder - by AlonzoTorres - 21.10.2013, 11:07
AW: Getting the highest index in folder - by BigETI - 21.10.2013, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)