jonheal;184318 Wrote: > Can you actually do that, only open/read a portion of a file? I'm just a > "sorta" programmer, but I am only aware of methods of opening an entire > file at once.
Well you open the whole file, but use lseek/fseek/whatever to seek to the part you want. Thats why id3 tags are at either the beginning or end of the file: it saves a ton of processing if you can ignore most of the file. (There are two schools of thought on whether the beginning or end is better... beginning is great for fixed-length data, since it can be found so easily... but if it "grows" you have to move everything after it... so most beginning-tag-writers use padding to keep some room for changes. End doesnt have that problem, but finding the tag backwards is harder.) -- snarlydwarf ------------------------------------------------------------------------ snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179 View this thread: http://forums.slimdevices.com/showthread.php?t=33041 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
