File Header and Footer signature in VB.NET


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: File Header and Footer signature in VB.NET

  1. #1
    Join Date
    Nov 2010
    Posts
    1

    Smile File Header and Footer signature in VB.NET

    Hello all & Greetings!!!


    I am a newbie into programming and I need to develop an application in VB.NET, which should be able to read the first 4-bytes and last 4-bytes of any file selected by the user using a BROWSE Dialog from the application


    also, in the backend, I am planning to use MSSQL for storing 3 fields, File Header, File Footer, and Extension,


    when the user selects any file via BROWSE, then the file header and footer values should be checked from the database, and I am planning to pre-populate all the file types with their extensions along with Header and Footer values,


    so, if a match exists then it should display the extension for that file BASED on the HEADER and FOOTER values.


    Can anyone help me with this,


    I am a newbie and dont know how to integrate the MSSQL DB in the VB.NET app, i am learning,

    and how do i read the FILE details like HEADER and FOOTER, and how can i compare using the VB.NET code from the DB.


    Can anyone please help me.


    Thanks in advance

  2. #2
    Join Date
    Dec 2004
    Location
    México DF
    Posts
    127
    I am a newbie too... but my guess is the class you need is System.IO.TextReader

    It has a Read method that should work for you.

    TextReader.Read Method (Char(), Int32, Int32)
    Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.
    http://msdn.microsoft.com/en-us/libr...(v=VS.90).aspx


    In any case, check the MSDN documentation for System.IO.

    HTH,

    mc

    PS: I assume you know how to use the browse dialog... if not check this
    http://blogs.techrepublic.com.com/pr...lopment/?p=481
    Last edited by MulaChula; 11-08-2010 at 10:29 AM. Reason: forgot to add link

Similar Threads

  1. Referencing A Word Header Footer
    By m60dude5 in forum ASP.NET
    Replies: 0
    Last Post: 03-20-2008, 11:49 AM
  2. Replies: 3
    Last Post: 03-19-2008, 03:10 AM
  3. print jsp webpage without footer and header
    By melvinoyh in forum Java
    Replies: 1
    Last Post: 04-25-2006, 09:34 AM
  4. printing w/o header footer
    By lorenzo ladelfa in forum Architecture and Design
    Replies: 0
    Last Post: 07-01-2002, 05:33 PM
  5. Static Table Header and Footer
    By K Deviprasad in forum Web
    Replies: 0
    Last Post: 05-11-2000, 08:49 AM

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center