Describe what are streams in file handling, DOT NET Programming

Assignment Help:

Question :

(a) Describe what are streams in file handling and explain what should be done when accessing data in an existing file.

(b) For what purpose are StreamReader and StreamWriter classes used?

(c) Write a program to add the details of 10 products of a supermarket in the text file (product.doc). The details of the products are product ID, product name, quantity and unit price.

(d) Using the file in 3(c), write appropriate codes to perform the following tasks:

(i) Search for a product by its ID and display the details if it exists.

(ii) Compute the cost for each product and store the results in the fifth column of the file. Compute and display the total cost for the products in a textbox. Your answer should include validations.


Related Discussions:- Describe what are streams in file handling

Manual reset event and auto reset event, What is Manual Reset Event and Aut...

What is Manual Reset Event and Auto Reset Event? The Threads that call one of the wait methods of a synchronization event should wait until other thread signals the event by ca

Reversing the numbers - c# program, Reversing the Numbers - C# Program ...

Reversing the Numbers - C# Program Hello guys i need your advice. How can i reverse the integer number in c# project? Please recommend some examples.

Problems occur while implement locking in sql server, What are the problems...

What are the problems that can occur if you do not implement locking properly in SQL SERVER? The problems that occur if you do not implement locking properly in SQL SERVER is a

Web portal development, Project Description: Looking for a developer who...

Project Description: Looking for a developer who will develop a web portal like zulutrade, some features will be taken from signaltrader The changes would be like: 1) Only

Describe the eventlog class, Describe the EventLog class. The EventLog ...

Describe the EventLog class. The EventLog class is used to access the Windows event logs from Windows services. Using EventLog, you can also customize Windows event logs that r

What is the use of a .disco file, What is the use of a .disco file? A c...

What is the use of a .disco file? A client application uses a .disco file to locate or discover the documents that have the description of a Web service. The .disco file having

Difference between authentication and authorization, What is the difference...

What is the difference between Authentication and authorization? This is  a tricky question. These two concepts seem altogether same  but there is big  difference. The Authenti

Develop skype recorder application, Develop Skype Recorder Application + Se...

Develop Skype Recorder Application + Setup + Sourcecode + NICE UI Project Description: i need an application built which will allow user to record skype audio or video calls

Live projects, current available topics on computer graphics

current available topics on computer graphics

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd