Results 1 to 3 of 3

Thread: [RESOLVED] Write or print to file multiple data items on a single line

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2007
    Location
    California
    Posts
    32

    Resolved [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.

  2. #2

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2007
    Location
    California
    Posts
    32

    Re: Write or print to file multiple data items on a single line

    Thanks!

    I should have known about this, but I didn't!!!

    Special thanks for your speedy reply.

    Issue resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width