DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    5

    reading and writing a file in VB

    In Visual Basic 6 I have written a program to read and write to a file. It works fine. Now I have to do the same for binary data since the information I write to the file has end-of-line and return characters. For instance, when I write to the file, the data looks like this:

    "3
    34"

    Because there is a break in the data. In debug mode, the text data has two boxes where the end-of-line and return characters go.

    Anyway, does anyone have any example code of binary level reading and writing to and from a file?

  2. #2
    Join Date
    Dec 2004
    Posts
    717
    Forums...
    Write Text Data to a Binary file (Also read it back)
    http://www.vbforums.com/showthread.p...34#post2295434

    Help with writing binary data
    http://groups.google.com/group/micro...&start=2&num=3

    binary file write in VB6
    http://groups.google.com/group/comp....8ffac841bc213d

    Atereon's Binary File I/O Library
    http://www.atereon.com/AtFileIo.asp
    Best Regards,
    Michael Sync
    http://michaelsync.net

    The more you share,The more you get

Similar Threads

  1. reading and writing a file in VB
    By Athono in forum VB Classic
    Replies: 1
    Last Post: 12-28-2005, 02:46 PM
  2. Reading and Writing to a file
    By Fergy25 in forum Java
    Replies: 1
    Last Post: 11-14-2005, 04:28 PM
  3. writing to a text file - VB 6 Please Help
    By sameera in forum VB Classic
    Replies: 1
    Last Post: 09-16-2005, 05:42 AM
  4. Reading and writing lines from a text file...
    By Jenks in forum VB Classic
    Replies: 6
    Last Post: 05-24-2005, 02:22 PM
  5. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 05:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links