Re: Searching for Fastest Way to Input a File
- Posted by euphoric (admin) May 15, 2014
- 2667 views
DerekParnell said...
euphoric said...
I did a search for "fastest way to read a file" and got no hits.
Ummm... more detail please.
- Which language are you intending to use?
- Is it a text file or binary?
- Do you include processing / interpreting the bytes in the 'speed' test or is it just a matter of getting the bytes into RAM?
- Is hardware an issue?
- Is size of the file an issue?
- What media does the file reside on?
My request was more for strengthening our search capabilities than obtaining the code, though obtaining the code was still an objective! :D
And I forgot about the read_lines() and read_file() commands. THOSE are what should have appeared in my search results. I guess we need smarter search, or link a Google search on this site.
Thank you for the code, Derek!