DIGIT-ARC read-only archive · snapshot: July 23, 2026

Can we make a bookmark or something in a file ?

8 posts · originally from https://geek.digit.in/community/threads/can-we-make-a-bookmark-or-something-in-a-file.94557/

clmlbx
clmlbx Original post #1
Aug 1, 2008 at 12:39 AM
Can we make a bookmark or something in a file ?

so it can start reading or writing it from there

one file but divided into parts which can be easily read,write,delete or modify.
QwertyManiac
Aug 1, 2008 at 12:57 AM
Harder version:
Keep records of line numbers and seek to those points each time you want to reach it.

Easier version:
Use a database.
clmlbx
clmlbx #3
Aug 1, 2008 at 10:09 AM
How to make a database ?
amitava82
Aug 1, 2008 at 6:18 PM
lol.. you know programming right?
clmlbx
clmlbx #5
Aug 1, 2008 at 9:17 PM
little forgot ............out of touch

some like class in c++ and struct in c

but to confirm.........
dheeraj_kumar
Aug 2, 2008 at 2:00 PM
Simple version - use objects(of structure or class) to store data.
Harder version - read the pointer position where you want your "bookmark" to be and store it somewhere. Use seekg to navigate there.
clmlbx
clmlbx #7
Aug 2, 2008 at 9:10 PM
^ thanx but will be better if u can give an example

any help about this

*www.thinkdigit.com/forum/showthread.php?t=94541
dheeraj_kumar
Aug 3, 2008 at 10:14 AM
simple way -
*www.learn-programming.za.net/programming_cpp_learn09.html
harder -

read the file upto where you want the bookmark. use tellg and store the return value somewhere. when you want to go back to bookmark, use seekg(saved value)
*www.cppreference.com/