473,396 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Filestream or FileGet?

Hello:

I am trying to read the contents of a file that be either be binary or text.

I would like to know which is better, Filestream or FileGet?

Thanks.

Venkat
Nov 21 '05 #1
5 1847
"vvenk" <vv***@discussions.microsoft.com> schrieb:
I am trying to read the contents of a file that be either
be binary or text.

I would like to know which is better, Filestream or FileGet?


IMO personal preference...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
Herbert:

Thanks for your reply. But I do want to poject myself as hep ie. with the
new implementations. FileRead, though I have used in the past reliably,
sounds backward to me.

No?

Veenkat

"Herfried K. Wagner [MVP]" wrote:
"vvenk" <vv***@discussions.microsoft.com> schrieb:
I am trying to read the contents of a file that be either
be binary or text.

I would like to know which is better, Filestream or FileGet?


IMO personal preference...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3
"vvenk" <vv***@discussions.microsoft.com> schrieb:
But I do want to poject myself as hep
What's "hep" (sorry, I really don't know...).
ie. with the new implementations.


If you want to make experiences with the file access classes in 'System.IO',
play around with them. Then you can decide what you like best: VB.NET's
file access methods (sometimes a valuable shortcut) or the I/O classes.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4
Herfried:

This may sound stupid but I don't see System.IO in the list of .Net
Components when I tried to reference it.

Am I doing something wrong?

Venkat

"Herfried K. Wagner [MVP]" wrote:
"vvenk" <vv***@discussions.microsoft.com> schrieb:
But I do want to poject myself as hep


What's "hep" (sorry, I really don't know...).
ie. with the new implementations.


If you want to make experiences with the file access classes in 'System.IO',
play around with them. Then you can decide what you like best: VB.NET's
file access methods (sometimes a valuable shortcut) or the I/O classes.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #5
"Venakt" <Ve****@discussions.microsoft.com> schrieb:
This may sound stupid but I don't see System.IO in the list of .Net
Components when I tried to reference it.

Am I doing something wrong?


'System.IO' is a namespace. If "System.dll" is referenced, it should be
available.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: TrongAn Hoang | last post by:
Hi, I am converting a VB6 program. I have data from UDT that contained all kinds of VB6 stuff like: variable length strings variants primitive types arrays of UDTs In short, it has all...
8
by: M. Angelo | last post by:
Is there a way to speed up FileGet and FilePut? Or should I use another method?
5
by: TC | last post by:
I just noticed that the Stream class has a Seek method, which implies that a FileStream object can be used to manipulate a random-access file. Before now, I assumed that a Stream, as its name...
16
by: vvenk | last post by:
Hello: When I use either one to read a Text file, I get the same result. The length of the string that the file's content has been written into is the same. However, if the file is binary,...
0
by: Mike Cooper | last post by:
Hi everyone, I am accessing several binary (PCL) files sequentially using a for loop. For each file I am using the fileget() command to populate the contents of the file into a string. I use...
2
by: Jack Russell | last post by:
I have some code I converted from VB6 to read some binary files. FileGet of an int16 seems to be returning a zero instead of the correct value. Anybody heard of this, know of a work around? ...
7
by: Nathan Sokalski | last post by:
I am having a problem saving an image with the same name it originally had. I have two similar versions of my code, one in which I close the FileStream used to open the original image before saving,...
9
by: Drayshak | last post by:
Hi, I'm currently making an application which reads a file and extracts information from it. Whole files are embedded in this single file, and information about each file that is embedded is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.