Can we make a bookmark or something in a file ?

Status
Not open for further replies.

clmlbx

Technomancer
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

Commander in Chief
Harder version:
Keep records of line numbers and seek to those points each time you want to reach it.

Easier version:
Use a database.
 
OP
clmlbx

clmlbx

Technomancer
little forgot ............out of touch

some like class in c++ and struct in c

but to confirm.........
 

dheeraj_kumar

Legen-wait for it-dary!
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.
 
OP
clmlbx

clmlbx

Technomancer
^ 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

Legen-wait for it-dary!
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/
 
Status
Not open for further replies.
Top Bottom