Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   How to read file? (https://www.askmehelpdesk.com/showthread.php?t=327783)

  • Mar 11, 2009, 07:43 AM
    trinopoty
    How to read file?
    I need to read a file that contains two files in it. Its sort of like an ISO file. I need to extract the files. Please help me with the full code. I have a Open file dialog box: dlgopen. And a button to show the open file dialog: cmdOpen. Its Visual Basic 2008.
  • Mar 11, 2009, 06:18 PM
    Perito

    I'd need more information than that. If it's "sort of like an ISO file", then you'd need to know the *exact* binary format of the file in order to extract the files. You'll need to know exactly how they're stored. Is there some sort of header indicating where the files are. Are they compressed? Are they just a stream of bytes of the original file? How do you know how many bytes to read and write?

    In VB.NET, you'll probably need a BinaryReader and a BinaryWriter objects.
  • Mar 12, 2009, 07:46 PM
    trinopoty
    Quote:

    Originally Posted by Perito View Post
    I'd need more information than that. If it's "sort of like an ISO file", then you'd need to know the *exact* binary format of the file in order to extract the files. You'll need to know exactly how they're stored. Is there some sort of header indicating where the files are. Are they compressed? Are they just a stream of bytes of the original file? How do you know how many bytes to read and write?

    In VB.NET, you'll probably need a BinaryReader and a BinaryWriter objects.

    I will also compress the file using VB (VB 2008). And they are not compressed. Uncompressed like an ISO File.

  • All times are GMT -7. The time now is 03:53 AM.