I am learing c# and confused on streams What are they?? Arey they used to store data or transfer data ?? Pls explain in very simple words

Member Avatar
Member Avatar
+0 forum 3

Boolean eminem = new Boolean("yes"); What does it mean & what does it create? Thanks.

Member Avatar
Member Avatar
+0 forum 2

public class BufferedReader { public static void main(String[] args) throws IOException { char c; BufferedReader sen = new BufferedReader (new InputStreamReader(System.in)); **// ERROR** System.out.println("Enter characters, 'q' to quit"); // read characters from the console while(c != 'q') { c = (char) sen.read(); **// ERROR** System.out.print(c); } } } I don't understand why the upper two lines of code produce error!

Member Avatar
Member Avatar
+0 forum 3

Hello everyone! I have here a code with a random-access file that lets you delete and update any information in the file. Please run the file to see what I'm talking about. [CODE] #include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; #include <cstdlib> int choice; void displaysmenu(void) { cout << "M E N U" << endl; cout << "[1] List" << endl; cout << "[2] Delete" << endl; cout << "[3] Update" << endl; cout << "[4] Add" << endl; cout << "[5] Quit" << endl; } void getchoice(void) { cout << "Your choice: " << endl; …

Member Avatar
Member Avatar
+0 forum 1

I have a program that runs a binary search tree and lists a menu of options. Two of the options are the only ones I can't seem to get to work which are saveToFile and buildFromFile. These methods include asking for a name to save as an output file (save) and asking for a name of the input file (open). Say I wanted to save a whole binary tree, nodes and all, and then be able to load that file and pick up right where I left off. Sounds easy, right? Apparently it's too hard for me hahaha. I get …

Member Avatar
+0 forum 0

The End.