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

Define assembly-types of assembly, Assembly: 1) Assembly is a unit of d...

Assembly: 1) Assembly is a unit of deployment such as EXE or a DLL. 2) An assembly consists one or more files (dlls, exe's, html files etc.),& represents a group of resources,

Print pyramids of numbers - c# program, Print Pyramids of Numbers - C# Prog...

Print Pyramids of Numbers - C# Program Hello can you please provide me some examples regarding to the Print Pyramids of Numbers in C#.

Mat lab programming, MAT LAB programming Project Description: i have ...

MAT LAB programming Project Description: i have simulation and i need to simulate the equation in ,and test the all simulation it working with your work program other code sh

What is the appfabric component, What is the AppFabric component? The A...

What is the AppFabric component? The AppFabric component is used to make access control and dole out messages across clouds and enterprises. It has a service-oriented architect

I need a custom project - c# developer, Project Description: My project ...

Project Description: My project is to construct for me an application that emulates the http requests made in a webapp. It will need a lot of dedication and skill in C#,.net,

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

Xml reader class, What is an XMLReader Class? This is an abstract class...

What is an XMLReader Class? This is an abstract class available from the System.XML namespace. The XML reader works on a read-only stream browsing from one node to another in a

Tutoring, Hi, I have been working on Dot Net over the past few years. I wou...

Hi, I have been working on Dot Net over the past few years. I would like to do online tutoring for .NET. Could you please let me know the possible oppurtunities

Steps of acquiring a proxy object in webservice, What are the  steps of a...

What are the  steps of acquiring a proxy object in Webservice? The following steps are required to get a proxy object of a webservice at the client side:- 1.     The Clie

Define importance of vitamin c, Define importance of Vitamin c Freezing...

Define importance of Vitamin c Freezing preserves vegetable and nutrients to a great extent. Vitamin A and β-Carotene are well preserved in spinach, peas and beans, or are mode

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