Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Open file as stream for fgetpos(), fseek(), etc.
Re: Open file as stream for fgetpos(), fseek(), etc. [message #29709 is a reply to message #29706] Tue, 09 November 2010 11:56 Go to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Thanks Honza, got what I need, in.SeekCur(-2000);

About 40 bytes each line for 3D position, 1/sec.
To set the replay back 1 min (40*60)
in.SeekCur(-2400)

Works OK.

A file was used before for testing, CPU usage, responsiveness, etc for 50 concurrent traces for about 3 hours of data ~200k lines (8MB).
Fast forward was not a problem by skipping lines, in.SeekCur(4000000) could go to the midpoint faster.
Rewinding a set amount is a function that was not included before, now it can be.

Neil

[Updated on: Tue, 09 November 2010 12:01]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Few questions
Next Topic: Debugging
Goto Forum:
  


Current Time: Sat May 10 09:04:18 CEST 2025

Total time taken to generate the page: 0.03231 seconds