Results 1 to 3 of 3

Thread: output file

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    7
    hey everyone,
    im creating a program that reads in a name and number from a text box and then writes them to a file. my problem is that the number gets written to the file with " " around it and when i call it to use as numeric input it recieves the default value of 0. i declared the variable as single , so im stumped. anyways if someone can help it would be really appreciated.
    thanks, meth
    "When the going gets weird, the weird turn pro"

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    What are you using for File IO?

    Random File Access will work the best for this, create a User type and PUT it to the file. the user type for the number can be long or integer (or byte) and it will write it in binary.

    remember to convert the text info to numeric first (with Val(), Clng() or whatever)

    Paul

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    7
    hey paul,
    Val function....i can't believe i missed that. thanks for responding.
    meth
    "When the going gets weird, the weird turn pro"

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