Resume Review
Most engineers make critical mistakes on their resumes -- we can
fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Learn More
Mock Interviews
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
Learn More
The issues is you have a huge file.... you do not want to read in the entire file and process every line.
- reststop November 22, 2015Open the file, print every character until you hit a newline.
Re-Open the file for random-access read, and set the read pointer at the EOF.
read characters backwards until you hit a newline, then print out the characters you've just read (in reverse order).
If you can't read one character at a time, read a block or page or whatever the file system allows, and work backwards in the block buffer, reading previous blocks as necessary to backup and find the preceeding newline.