Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 18th, 2004, 01:32 AM
Authorized User
 
Join Date: Oct 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Searching

I have a file customer.txt, i write some data 2 it
i have 2 read from it incase a client wants to view their details.
I use their account number as the primary key,so i get it form the user, open up my file for reading.
How do i search for this record in the file?

Thanks
programmed

Reply With Quote
  #2 (permalink)  
Old June 24th, 2004, 01:08 AM
Authorized User
 
Join Date: Jun 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to silver_cuts Send a message via Yahoo to silver_cuts
Default

well programmed ,

in what format do you write the data into the text ... do you write the entire object ... bcoz how you read and search a file depends very much on how u write the file ... so tell me how have you written the data to the file and may be then i can help ..

Sudhan

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
searching a database mark jonas MySQL 13 January 19th, 2007 10:01 AM
Federated searching _abhi JSP Basics 0 December 27th, 2006 02:24 AM
Searching through a database d5t ASP.NET 1.0 and 1.1 Basics 6 October 27th, 2006 07:10 AM
Slow Searching zaheer131 VB How-To 0 March 15th, 2005 03:26 AM
searching treasacrowe Classic ASP Databases 3 September 3rd, 2004 07:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.