View Single Post
  #9 (permalink)  
Old 09-28-2007, 07:23 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Admin
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 442
iTrader: (0)
TeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to behold
I think I found a problem and would like your feedback on it. If I access fields by their byte position in the file, then records need to be stored in byte form. When working with numbers, this could mean that a newline (byte 13) is stored to represent 1101 which would happen, for example, on record 13. This could be a real pain as the records would not then be CSVs. Subsequently, I'm thinking of not storing by byte and just storing strings and then reading in one line at a time, comparing the first field to see if it contains the primary key and looping through the whole file that way.

Does anyone see a more efficient means of accessing data randomly while addressing problems of bytes? Am I missing something? Am I making it too complicated?

Your feedback and suggestions are very much appreciated.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote