Int64 LoadFromStream(Stream Src)
Reads the header information and the values array content from a stream.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Stream |
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
Vector b;
TFileStream AStream;
b.SetIt(false,new double[] {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;
}
See Also: Vector.SaveToStream, Vector.LoadFromFile