|
-
Aug 25th, 2007, 05:23 PM
#1
Thread Starter
Member
[RESOLVED] Write or print to file multiple data items on a single line
I would like to write (or print) to a file numerical data in the following form:
11, 12, 13 (CHR13)
22, 23, 24 (CHR13)
etc
or just:
11 spc 12 spc 13 (CHR13)
22 spc 23 spc 24 (CHR13)
etc
In some programming languages (e.g. Fortran) this is easy. In VB the only way I can think of doing this:
concatenate the individual data items in string format until the EOL
and then when reading data back from the file I have to parse and convert the individual string items to Val(s).
I'm using VB5.
Is there any way to do this in a simpler manner?
P.S.
I'm trying to avoid the line-by-line format, such as:
12
13
14
22
23
24
etc.
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
|