Agilent Technologies

VISA: Storing Test Data to a File using Visual Basic .NET Read Me

This sample program demonstrates various mechanisms with which to save test data to a file in .NET.

Date: Sep 2003

Version: 1.0

Language: Microsoft® Visual Basic .NET

Instruments: No Instruments

OS Requirements: Microsoft Windows® 98 SE, NT® 4.0, ME, 2000, or XP

Additional Software: Agilent IO Libraries M.01.01.04 (or later)

The purpose of this sample program is to demonstrate various mechanism with which to save test data to a file in .NET.

Example 1 - CSV Text using File.CreateText
Example 2 - NameValue Text using StreamWriter and StreamReader
Example 3 - Binary Files using FilesStream, BinaryWriter, and BinaryReader
Example 4 - Binary Serialization using FileStream and BinaryFormatter
Example 5 - XML Serialization using FileStream and XMLSerializer
Example 6 - Reading an Application Configuration File
Example 7 - File and Directory Operations
Example 8 - Enable FileSystemWatcher

AGILENT PROVIDES THIS FREE SOFTWARE "AS IS". ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO ANY WARRANTY OF NON-INFRINGEMENT, THE IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY QUALITY, REASONABLE CARE AND SKILL, AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Agilent shall not be liable in any way whatsoever for any damages of any nature arising from its use. In no event shall Agilent be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to: procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability or tort (including negligence or otherwise) except if caused by willful misconduct or gross negligence arising in any way out of the use of this software, even if advised of the possibility of such damage and if it has been ensured that such data can be reconstructed with reasonable expenditure from data material provided in machine-readable form.

Windows is a U.S. registered trademark of Microsoft Corporation.

Microsoft is a U.S. registered trademark of Microsoft Corporation.

Windows NT is a U.S. registered trademark of Microsoft Corporation.

Copyright © 2004 Agilent Technologies, Inc.


© Agilent 2000-2006