# FileGetInfo()

Returns information about a streamer file.

When FileAInScan() or FilePretrig() fills the streamer file, information is stored about how the data was collected (sample rate, channels sampled etc.). This method returns that information. Refer to board-specific information in the Universal Library User's Guide to determine if your device supports FileAInScan() and/or FilePretrig().

Member of the MccService class.

## Function Prototype

VB .NET

Public Shared Function FileGetInfo(ByVal fileName As String, ByRef lowChan As Short, ByRef highChan As Short, ByRef pretrigCount As Integer, ByRef totalCount As Integer, ByRef rate As Integer, ByRef range As MccDaq.Range) As MccDaq.ErrorInfo

C# .NET

public static MccDaq.ErrorInfo FileGetInfo(string fileName, out short lowChan, out short highChan, out int pretrigCount, out int totalCount, out int rate, out MccDaq.Range range)

## Parameters

fileName

Name of streamer file.

lowChan

Variable to return lowChan to.

highChan

Variable to return highChan to.

pretrigCount

Variable to return pretrigCount to.

totalCount

Variable to return totalCount to.

rate

Variable to return sampling rate to.

range

Variable to return the A/D range code to. Refer to board-specific information in the Universal Library User's Guide for a list of the supported A/D ranges of each device.

## Returns

- An ErrorInfo object that indicates the status of the operation.
- lowChan – low A/D channel of the scan.
- highChan – high A/D channel of the scan.
- totalCount – total number of points collected.
- pretrigCount – number of pre-trigger points collected.
- rate – sampling rate when data was collected.
- range – Range of the A/D when data was collected.