473,396 Members | 1,792 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.

Read / write to a proprietary data file

I have a requirement to read / write to a proprietary data file. The fill
will have no more than 10 records with no more than 10 fields. This is only
for very simple data access. I want to completely avoid using ADO and XML.

If someone can please point me in the right dirrection.

Regards,
Mike.
Nov 20 '05 #1
7 4521
Cor
Hi Mike,
Take a look for "streamreader class or/and streamwriter class " in MSDN
Everything is written there
Cor
Nov 20 '05 #2
Hello,

"Mike Stephens" <no************@nosuchdomain.com> schrieb:
I have a requirement to read / write to a proprietary data
file.


What's the format you want to write?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
"Mike Stephens" <no************@nosuchdomain.com> wrote in
news:e5**************@TK2MSFTNGP09.phx.gbl:
I have a requirement to read / write to a proprietary data file. The
fill will have no more than 10 records with no more than 10 fields.
This is only for very simple data access. I want to completely avoid
using ADO and XML.

If someone can please point me in the right dirrection.


Is this a binary or text file?

Check out System.IO class. There are classes to read/write binary and text
files.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #4
I would like to write to a binary file.
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:OD**************@TK2MSFTNGP11.phx.gbl...
Hello,

"Mike Stephens" <no************@nosuchdomain.com> schrieb:
I have a requirement to read / write to a proprietary data
file.


What's the format you want to write?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #5
I would like to write to a binary file

"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@140.99.99.130.. .
"Mike Stephens" <no************@nosuchdomain.com> wrote in
news:e5**************@TK2MSFTNGP09.phx.gbl:
I have a requirement to read / write to a proprietary data file. The
fill will have no more than 10 records with no more than 10 fields.
This is only for very simple data access. I want to completely avoid
using ADO and XML.

If someone can please point me in the right dirrection.


Is this a binary or text file?

Check out System.IO class. There are classes to read/write binary and text
files.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/

Nov 20 '05 #6
Hello,

"Mike Stephens" <no************@nosuchdomain.com> schrieb:
I would like to write to a binary file.


Have a look at the class 'System.IO.BinaryWriter'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #7
"Mike Stephens" <no************@nosuchdomain.com> wrote in
news:e4**************@TK2MSFTNGP10.phx.gbl:
I would like to write to a binary file


BinaryReader/BinaryWriter.

But if there is an ADO.NET driver available for the binary file, I would
use that instead...

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #8

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

Similar topics

1
by: Magix | last post by:
Hi, I have these string data: str_data1, str_data2, str_data3, which capture some value after a routine process A. Then I would like to write (append) these 3 string values into a text file each...
10
by: QQ | last post by:
I am trying to read data from Excel files I use the following codes, however, it didn't work Can anyone tell me what the format excel files have, what I should do to read it from C? Thanks a...
12
by: Ron | last post by:
What is the VB equivalent of the READ...DATA statements in QuickBasic? Thanks
2
by: catronro | last post by:
I want to read an xml file and build a string based on that file. But when i try to implement it i get an Object Required error. Any help would be greatly appreciated. try { var xmlDoc = new...
3
by: nicolasg | last post by:
Hi, I'm trying to open a file (any file) in binary mode and save it inside a new text file. After that I want to read the source from the text file and save it back to the disk with its...
2
by: agphoto | last post by:
There is big or problem in open file in read and write mode.. $file = "data.txt"; $fp = fopen($file,"w+"); $line = fgets($fp,"120"); // i need only 1st line to read and upto 120 bytes echo...
23
by: ShaneO | last post by:
Hello, I wish to extract embedded string data from a file using a Binary Read method. The following code sample is used in VB.NET and similar code is used in VB6 - (Assume variable...
9
by: vineeth | last post by:
Hello all, I have come across a weird problem, I need to determine the amount of bytes read from a file, but couldn't figure it out , My program does this : __ file = open("somefile") data =...
1
by: Sachin Garg | last post by:
I have a program which opens a fstream in binary input+output mode, creating the file if it doesn't exists. But writing doesn't works after reading, it must be something obvious that I am not aware...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.