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

Design a integrated application, This assignment aims to give you a deeper...

This assignment aims to give you a deeper understanding of a 3-tiers integrated application, which groups together several topics taught in this course. This assignment asks yo

What is the difference between sent by val and by ref, What is the differen...

What is the difference between proc. sent BY VAL and By Ref? By val: changes will not be reflected back to the variable. By ref: changes will be reflected back to that varia

Counting number of words in a string - c# program, Counting Number of Words...

Counting Number of Words in a String - C# Program Anyone can suggest me the output of the following program. using System;   class CountWords { public static void

Slide bettween window application, Slide Bettween Window Application 1 P...

Slide Bettween Window Application 1 Project Description: Like Mouse Gesture. Keep Right Mouse, Slide Left and drop right mouse. Move to earlier app on taskbar. Keep Lef

Costing, how much u guys cost for 5 pages website in .net?

how much u guys cost for 5 pages website in .net?

Prepare a script to automate the software muvee reveal, Prepare a script to...

Prepare a script to automate the software "muvee Reveal" Project Description: My name is Mark, I run a company engaged in E-Learning products. We looked for a long time fo

Software bot for domain parking, I have 10 domains which are presently park...

I have 10 domains which are presently parked, now I need a software/Bot which generate clicks on the ads placed on the website. These clicks which are generated should use proxy to

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

What do you mean by data encapsulation, What do you mean by data encapsulat...

What do you mean by data encapsulation? Data encapsulation is a method of binding data and code in single unit known as object and hiding all the implementation details of a cl

.net sender for whatsap, Project Description: We require.NET ( C#.Net or...

Project Description: We require.NET ( C#.Net or VB.Net ) application to send whatsapp message : - The application could be connected to SQL server database to fetch the conta

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