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

Explain system workflow and a human workflow, What is the difference amonga...

What is the difference amonga system workflow and a human workflow? A system workflow is a workflow that is developed to automate interactions between applications. Such workfl

Common code, How do I write common code for different dot net framework dat...

How do I write common code for different dot net framework data providers?

What is strong-typing versus weak-typing, What is strong-typing versus weak...

What is strong-typing versus weak-typing? Which is preferred? Why? Strong type is checking the types of variables as soon as possible, usually at compile time. While weak typing

Significance of finalize method in .net, What is the significance of Finali...

What is the significance of Finalize method in .NET? The .NET Garbage collector does atmost all clean up activity for your objects. But unmanaged resources (like - Windows API

Auto stock market robot, Auto stock market robot Project Description: ...

Auto stock market robot Project Description: A total solution for the Robot trading on Nse , currency, Mcx, ncdex,using formulas or using buy sell signals . The solution s

.net aplication with vbulletin paid subscribtion, .NET aplication with vBul...

.NET aplication with vBulletin paid subscribtion Project Description: I have an application in .net it's a simple client i have sheltered with net seal license system for aut

What is manifest, Manifest Assembly metadata is always stored in the Ma...

Manifest Assembly metadata is always stored in the Manifest. Manifest consists of all metadata required to do the following things: 1) Version of assembly 2) Security ident

What is the difference between thread and process, What is the difference b...

What is the difference between thread and process?  Thread - is used to implement more than one program at a time. process - implements single program A thread is a path

What is asp.net ajax, What is ASP.NET AJAX? ASP.NET AJAX, mostly called...

What is ASP.NET AJAX? ASP.NET AJAX, mostly called AJAX, is a set of extensions of ASP.NET. It is developed by Microsoft to execute AJAX functionalities in Web applications. ASP

Different transaction levels in sql server, What are different transaction ...

What are different transaction levels in SQL SERVER? The Transaction Isolation level decides how is the one process isolated from theother process. Using the transaction levels

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