intellisense for contained words, how about unknown words?

I put a little Java HexDump program of mine into visual studio C# IDE and had only 3 changes to get rid of many error complaints. but intellisense is not able to help me on BufferedInputStream (I believe that was the one) which is evidently not in C#. I need the reference for input from files.
[300 byte] By [hill0093] at [2008-1-3]
# 1

What are you asking? Are you suggesting that IntelliSense should provide help/information for types/members that, as far it is concerned, don't exist? Or, are you asking how to port use of Java's BufferedInputStream to .NET? In either case, nothing in the C# Language can address this.

PeterRitchie at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
I think he is asking the C# equivalent of Java's BufferedInputStream, just from the name of it (I never used Java), but you might try looking into the StreamReader class, and everything under called 'Stream', very useful file I/O. The StreamReader class lies under System.IO;, don't forget to have that referenced, or put it in your declaration
Example:

using System;
using System.IO;

namespace IO
{
public class
{
void SystemIOStuff()
{
StreamReader sReader = new StreamReader("C:\\Users\\Shaun\\Desktop\\File.txt");
sReader.ReadLine();

sReader.Close();
}
}
}

NOTE: Don't forget to always close the reader when finished, and when finished with writing, through the StreamWriter class, always do sWriter.Flush(), and sWriter.Close();

And no, Intellisense will not, and does not store a database of unknown words, and suggestions for changing them, how would that even work\ be made to work? Intellisense however, does correct you when you use namespaces or classes incorrectly, and should be using another, or a method.

Predator14567 at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3
I have the “csharp language specification v1.2” and it doesn’t say anything about file input. My final sentence in that post was “I need the reference for input from files”. I’m glad you caught the main point, Predator14567, even though you do not have as many posts as some. The second main point is that I need to know how to program for fast input of unspecified type of file. I need something for the rest of the stuff that is not covered in the “csharp language specification v1.2” but comparable for binary input of any file. However, I will be looking and starting with what you suggest. Thanks a whole bunch. I do programming in my off-work hours, so maybe tomorrow.
hill0093 at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 4

hill0093 wrote:
I have the “csharp language specification v1.2” and it doesn’t say anything about file input. My final sentence in that post was “I need the reference for input from files”. I’m glad you caught the main point, Predator14567, even though you do not have as many posts as some. The second main point is that I need to know how to program for fast input of unspecified type of file. I need something for the rest of the stuff that is not covered in the “csharp language specification v1.2” but comparable for binary input of any file. However, I will be looking and starting with what you suggest. Thanks a whole bunch. I do programming in my off-work hours, so maybe tomorrow.
Right, there's nothing specific to the C# language to support I/O--that's the domain the Framework Class Library and the Base Classs Library.

I've moved your post from the C# Language forum to the .NET Base Class Library Forum for better exposure

PeterRitchie at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 5
I searched today, but still cannot find a description of whatever classes and C# statements
I need for byte-by-byte buffered input of files including exceptions and maybe some examples.
hill0093 at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 6

I don't know if this will help, but it may.

Code Snippet

// This is the buffer we're going to put the file contents into

MemoryStream memoryStream = new MemoryStream();

// -1 indicates end of file and is why ReadByte() returns an int instead of a byte

using(FileStream fileStream = new FileStream(@"c:\INSTALL.LOG", FileMode.Open))

while ((Byte = fileStream.ReadByte()) != -1)

// Append that byte to into the buffer

memoryStream.WriteByte((byte)Byte);

// Byte array of file's contents

byte[] binaryFileContents = memoryStream.ToArray();

// Throw the garbage out

memoryStream.Dispose();

ChrisO'Brien at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 7
Thanks. It's beginning to look promising. I will study it and get as much as I can from intellisense. I can't tell from the code if the input is buffered like in Java's BufferedInputStream. I'll still need a good reference book like the one I mentioned for C#. I think C# has some features that should have been in Java, but I don't know enough about it yet
hill0093 at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 8
Do I dare ask again?
"I'll still need a good reference book like the one I mentioned for C#".
hill0093 at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 9

BTW, there's also the BufferedStream class.

I recommend Essential C# 2.0 by Mark Michaelis and Effective C# once you're familiar with the syntax.

PeterRitchie at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 10
Thanks. I guess I wasn't clear. I need a book for .NET like the one I mentioned for C#, so I can use .NET from C#. At least that is the way I understand it from various places. I shouldn't have to buy one, should I? The C# one I have looks good to me, and I downloaded it from the internet.
hill0093 at 2007-9-25 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified