|
-
Jul 9th, 2003, 12:29 AM
#1
reading a file?
hmm there is the StreamReader that I've been using all the time, and then there is the FileStream class. Would someone care to explain the big difference between these. Which one should I use for reading text files?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jul 9th, 2003, 01:26 AM
#2
The FileStream is the class that basically is the file, the StreamReader is used to read or interept the data in the FileStream and convert it to more useful things (like strings). There are other kinds of Streams as well, like Memory and Network which all derive from the same base Stream Class. The StreamReader and Writer are what we use to interact with these streams, unless you want to do it byte by byte.
To use an analog the Stream is like a CD and the Stream Reader/Writer is like the CD Player.
-
Jul 9th, 2003, 02:22 AM
#3
aha cool thanks, makes more sense
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|