6 Discussion / Question Topics

Remove Filter
Member Avatar for 5ophie2012

I need to create a method that counts words and lines using specific guidelines and I can't figure it out: Update the count of words & lines in the file as each character is read create a void method, CountIt(), to count the lines and words Parameters: pass in the …

Member Avatar for 5ophie2012
0
1K
Member Avatar for 5ophie2012

For my assignment, I have to read a text file one character at a time and display it in the console. Here's my code for this: [CODE]class TEXT { static StreamReader reader; static void Main() { int ch, characters = 0; // file that is being read in and displayed …

Member Avatar for 5ophie2012
0
180
Member Avatar for 5ophie2012

My program in a nutshell is reading a text file, outputting it to the console screen one character at a time, and then writing the characters as its read as hex pairs. I'm calling this method in a loop: [ICODE]WriteByte((char)ch, ref writer);[/ICODE](passing in the character, and a reference to the …

Member Avatar for 5ophie2012
0
261
Member Avatar for 5ophie2012

Once again, I'm having trouble on my next assignment for class. This is what I have to do: Read and process a text file one character at a time: 1.) output the file to the screen one character at a time (as a char) as the file is read. 2.) …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for 5ophie2012

Hello! I'm currently working on a program for class and I'm stuck. Here's the directions: 1.) Read one integer, n, from file: data.dat (the number "21" is in this file) 2.) The program (4 methods) will loop n times, using indexes 1 to n. 3.) Each time through the loop: …

Member Avatar for james6754
0
158
Member Avatar for 5ophie2012

Help! I'm developing a program for a class and I'm a bit lost. My program needs to do the following: 1.) Open a text file using a file dialog box. 2.) Loop and read the file one line at a time using Readline(). 3.) Display every line which has text …

Member Avatar for kvprajapati
0
104

The End.