Vector.LoadFromStream Method

function LoadFromStream(const Src: TStream): Int64;

Reads the header information and the values array content from a stream.

#NameTypeDescription
1SrcStream

Returns: Int64

Remarks:

Reads the header information and the values array content from the SrcStream. The return value indicates the number of elements read.

Examples
var b: Vector;
    AStream: TFileStream;
begin
    b.SetIt(False,[0,0,1,3,2]);
    AStream := TFileStream.Create('C:\test.Vec',fmCreate);
    try
        b.LoadFromStream(AStream); // Read info and header for b
    finally
        AStream.Free;
    end;
end;
See Also: Vector.SaveToStream, Vector.LoadFromFile