Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 01-08-2008, 12:39 AM   #1 (permalink)
Wise Old Owl
 
clmlbx's Avatar
 
Join Date: Aug 2006
Location: Indore
Posts: 1,691
Default Can we make a bookmark or something in a file ?


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.
__________________
Athlon II X4 635 @ 2.9Ghz   Gigabyte GA-MA785GMT-US2H   Kingston 2x2 Gb 1333Mhz DDR3   WDC 500Gb Green   Palit GTS 250 512mb   Tagan 500W   Samsung B2030   Lg DVD Writer
clmlbx is online now  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 01-08-2008, 12:57 AM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: Can we make a bookmark or something in a file ?

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

Easier version:
Use a database.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 01-08-2008, 10:09 AM   #3 (permalink)
Wise Old Owl
 
clmlbx's Avatar
 
Join Date: Aug 2006
Location: Indore
Posts: 1,691
Default Re: Can we make a bookmark or something in a file ?

How to make a database ?
__________________
Athlon II X4 635 @ 2.9Ghz   Gigabyte GA-MA785GMT-US2H   Kingston 2x2 Gb 1333Mhz DDR3   WDC 500Gb Green   Palit GTS 250 512mb   Tagan 500W   Samsung B2030   Lg DVD Writer
clmlbx is online now  
Old 01-08-2008, 06:18 PM   #4 (permalink)
MMO Addict
 
amitava82's Avatar
 
Join Date: Jul 2004
Location: Bangalore
Posts: 1,474
Default Re: Can we make a bookmark or something in a file ?

lol.. you know programming right?
__________________
Steam Profile || Personal Page
Warp drive active. Approaching stargate.
amitava82 is offline  
Old 01-08-2008, 09:17 PM   #5 (permalink)
Wise Old Owl
 
clmlbx's Avatar
 
Join Date: Aug 2006
Location: Indore
Posts: 1,691
Default Re: Can we make a bookmark or something in a file ?

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

some like class in c++ and struct in c

but to confirm.........
__________________
Athlon II X4 635 @ 2.9Ghz   Gigabyte GA-MA785GMT-US2H   Kingston 2x2 Gb 1333Mhz DDR3   WDC 500Gb Green   Palit GTS 250 512mb   Tagan 500W   Samsung B2030   Lg DVD Writer
clmlbx is online now  
Old 02-08-2008, 02:00 PM   #6 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Can we make a bookmark or something in a file ?

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.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 02-08-2008, 09:10 PM   #7 (permalink)
Wise Old Owl
 
clmlbx's Avatar
 
Join Date: Aug 2006
Location: Indore
Posts: 1,691
Default Re: Can we make a bookmark or something in a file ?

^ thanx but will be better if u can give an example

any help about this

http://www.thinkdigit.com/forum/showthread.php?t=94541
__________________
Athlon II X4 635 @ 2.9Ghz   Gigabyte GA-MA785GMT-US2H   Kingston 2x2 Gb 1333Mhz DDR3   WDC 500Gb Green   Palit GTS 250 512mb   Tagan 500W   Samsung B2030   Lg DVD Writer
clmlbx is online now  
Old 03-08-2008, 10:14 AM   #8 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Can we make a bookmark or something in a file ?

simple way -
http://www.learn-programming.za.net/...p_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)
http://www.cppreference.com/
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make DVD using .UIF File ? satyamy QnA (read only) 2 26-02-2008 08:16 PM
how to make subtitle file assddd QnA (read only) 8 29-07-2007 04:18 AM
how to make movie CD of .mpg file taken Software Q&A 3 23-03-2006 10:42 PM
How to make a DLL file for icons choudang Software Q&A 1 20-01-2006 11:51 PM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 11:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2