Click here to Skip to main content
15,886,810 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
See more:
i am making project on travelling agency..
in witch i want to generate bill of perticular person who has register his account. and select one of package that provided by my projet.

nw i want to knw how to generate bill from two files.

like my 1st file name is person.txt and 2nd file name is package txt.
Posted
Comments
OriginalGriff 29-Jun-14 6:31am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
We have no idea how you organise your files, or what help you need!
What have you tried?
Where are you stuck?
Use the "Improve question" widget to edit your question and provide better information.
[no name] 29-Jun-14 6:35am    
Did your homework assignment text or teacher give you any hint at all what the relationship was between person.txt and package.txt? It's probably as simple as go through the person.txt file until you find the name, go through the package.txt until you find the selected package. Create the invoice according to whatever your rules are.
Michael Haephrati 29-Jun-14 15:16pm    
My guess is that your assignment is to go over 2 files:
1. Orders (customer details, order date, package selected)
2. Packages (package UID, package name, package price, etc.
and then generate an invoice from each order...

1 solution

If you can, change the architecture of your application: use a database instead of text files.
That said, you have to parse the text files in order to extract the required info to produce the bill. The complexity of your parsing code depends on how is structured the info in such text files (you wrote nothing about).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900