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

Structure or Data Type I/O

BKM
Is there an easy way to read and write Data Types to files or do I have to
have Input and output statements for each variable in the Data Type?
Jul 17 '05 #1
8 2175
"BKM" <tr******@thebottomofthestairs.com> wrote
Is there an easy way to read and write Data Types to files or do I have to
have Input and output statements for each variable in the Data Type?


http://groups.google.com/groups?selm...%40tkmsftngp05
LFS

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #2
On Mon, 17 Nov 2003 03:21:23 -0500, "BKM"
<tr******@thebottomofthestairs.com> wrote:
Is there an easy way to read and write Data Types to files or do I have to
have Input and output statements for each variable in the Data Type?


Could you explain what you want to do in a bit more detail
Jul 17 '05 #3
BKM
Thanks. That's just what I was looking for.

"Larry Serflaten" <Fi******@RiskOfBeingSpam.med> wrote in message
news:3f********@corp.newsgroups.com...
"BKM" <tr******@thebottomofthestairs.com> wrote
Is there an easy way to read and write Data Types to files or do I have to have Input and output statements for each variable in the Data Type?


http://groups.google.com/groups?selm...%40tkmsftngp05
LFS

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

Jul 17 '05 #4
On Mon, 17 Nov 2003 14:53:50 -0500, "BKM"
<tr******@thebottomofthestairs.com> wrote:
Thanks. That's just what I was looking for.

Hmm ...

I would be very wary about that approach

IMO and IME data files should be in a format that can easily be read
by any language - not just VB5/6
Jul 17 '05 #5
"J French" <er*****@nowhere.com> wrote
Thanks. That's just what I was looking for.

Hmm ...

I would be very wary about that approach

IMO and IME data files should be in a format that can easily be read
by any language - not just VB5/6


Can you elaborate?
What hinders some other language from reading a UDT stuffed into a file?
Consider, for example, a GIF file. It is image data, contained in a file.
What has language got to do with getting that data back out?

LFS

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #6
On Tue, 18 Nov 2003 07:26:30 -0600, "Larry Serflaten"
<Fi******@RiskOfBeingSpam.med> wrote:
"J French" <er*****@nowhere.com> wrote
>Thanks. That's just what I was looking for.
>

Hmm ...

I would be very wary about that approach

IMO and IME data files should be in a format that can easily be read
by any language - not just VB5/6


Can you elaborate?
What hinders some other language from reading a UDT stuffed into a file?
Consider, for example, a GIF file. It is image data, contained in a file.
What has language got to do with getting that data back out?


GIF is a format that is independant of language
A header with (patented) LZW compression

The storage of an OleVarient or a VB String is something rather
different

Ever tried to decifer Pascal 6 byte Floats ?

Anyway, it is pretty irrelevant, given a few years you will be saying
the same thing. Language specific storage is a PITA.
Jul 17 '05 #7
> >"J French" <er*****@nowhere.com>

The storage of an OleVarient or a VB String is something rather
different
OK, I'll give you that one, a Variant would be a special case, but not a
show stopper. I could use any language, and knowing the format, could
still get that exact data back. A file is just data, regaurdless of how it got
there.

Anyway, it is pretty irrelevant, given a few years you will be saying
the same thing. Language specific storage is a PITA.

I doubt that, I started in the mid 70's, and I still think ease of use is a
big plus, as was indicated in the linked text.

LFS


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #8
On Tue, 18 Nov 2003 11:57:37 -0600, "Larry Serflaten"
<Fi******@RiskOfBeingSpam.med> wrote:

<snip>

Anyway, it is pretty irrelevant, given a few years you will be saying
the same thing. Language specific storage is a PITA.

I doubt that, I started in the mid 70's, and I still think ease of use is a
big plus, as was indicated in the linked text.


Hmm.. I really started in 1977 - on a teletype mainframe

Since then I have 'been on the road to Damascus' a number of times

One of my greatest pleasures is hearing younger guys that I trained,
coming up with what I was saying many years ago
- and at the time they were trying to 'be clever coders'

Consider this, VB Classic is discontinued, you probably will not want
to migrate to VB.NET, so you'll be hunting around
- you may go for Delphi
- or you may go for a yet to be released version of Java
- probably the latter - not an insult - believe me

Proprietary data structures will then infuriate you

Cross-language coders are pretty common
- Personally I use VB and Delphi
- both have 'native' filing quirks, that one avoids like the plague

While I reckon that your 'Damascene conversion' is rather overdue
- it will happen
Jul 17 '05 #9

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

Similar topics

5
by: brett valjalo | last post by:
Hey Gang! SORRY ABOUT THE LENGTH! Nice to see some of the same faces around this place from way back when ... Whatta buncha CDMA addicts some o' y'all are ;) Don't get me wrong, I...
4
by: Dan | last post by:
I'm trying to creat a data structure, that can be either a integer, double, string, or linked list. So I created the following, but don't know if it is the data structure itself causing problems,...
2
by: Steve Turner | last post by:
I have read several interesting posts on passing structures to C dlls, but none seem to cover the following case. The structure (as seen in C) is as follows: typedef struct tag_scanparm { short...
3
by: Kiran B. | last post by:
Hi, I am new to .net. I have two Data Structure Type ... Sturcture A and Structure B. Structure A Public Fname as String Public LastName as String Public City as String Public Zip as String...
10
by: Qwert | last post by:
Hello, is it correct that if a type (System.Type) is a value (.IsValueType=True) and not primitive (.IsPrimitive=False), that type is a structure? Thanks.
14
by: zoltan | last post by:
Hi, Consider a structure as follows : struct dummy { int a; int b; int c; };
1
by: pmm | last post by:
hi I am repeating my post here plz excuse i am trying out a UDP packet transfer between a windows machine and a linux I created a structure on both sides (ie on linux and on windows) and I sent...
8
by: SP | last post by:
The following code crashes after I add the two nested FOR loops at the end, I am starting to learn about pointers and would like to understand what I'm doing wrong. I think the problem is the way...
0
by: MikeCS | last post by:
Hi all I would like some help with this issue. I am new to VB 2005 (OK with VB6) My problem is that I cannot seem to return a structure from a function. Example: I defined a structure in a...
5
by: =?Utf-8?B?QXlrdXQgRXJnaW4=?= | last post by:
Hi Willy, Thank you very much for your work. C++ code doesnot make any serialization. So at runtime C# code gives an serialization error at "msg_file_s sa = (msg_file_s) bf.Deserialize(ms);"...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.