home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_ReadfromaBinaryFile_snippet_142685_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  819b  |  23 lines

  1. <?xml version="1.0"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Read a Binary File</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Reads data from a binary file.</Description>
  8.       <Shortcut>filReadBin</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Declarations>
  12.         <Literal>
  13.           <ID>Filename</ID>
  14.           <Type>String</Type>
  15.           <ToolTip>Replace with filename.</ToolTip>
  16.           <Default>"C:\Test.txt"</Default>
  17.         </Literal>
  18.       </Declarations>
  19.       <Code Language="VB" Kind="method body"><![CDATA[Dim fileContents As Byte()
  20. filecontents = My.Computer.FileSystem.ReadAllBytes($Filename$)]]></Code>
  21.     </Snippet>
  22.   </CodeSnippet>
  23. </CodeSnippets>