[Info-vax] CRTL and RMS vs SSIO

Arne Vajhøj arne at vajhoej.dk
Thu Oct 7 10:42:26 EDT 2021


On 10/7/2021 9:34 AM, Arne Vajhøj wrote:
>          fseek(fp, ix, SEEK_SET);

> var.txt size = 14 bytes
> var.txt sequential read (text): 1=41 2=0A 3=42 4=42 5=0A 6=43 7=43 8=43 
> 9=0A
> var.txt sequential read (binary): 1=41 2=42 3=42 4=43 5=43 6=43
> var.txt direct read (text): 1=41 2=-1 3=02 4=-1 5=42 6=-1 7=-1 8=-1 9=43 
> 10=-1 11=-1 12=-1 13=FF 14=-1
> var.txt direct read (binary): 1=41 2=-1 3=02 4=-1 5=42 6=-1 7=-1 8=-1 
> 9=43 10=-1 11=-1 12=-1 13=FF 14=-1
> $ mcr sys$disk:[]process stmlf.txt
> stmlf.txt size = 9 bytes
> stmlf.txt sequential read (text): 1=41 2=0A 3=42 4=42 5=0A 6=43 7=43 
> 8=43 9=0A
> stmlf.txt sequential read (binary): 1=41 2=0A 3=42 4=42 5=0A 6=43 7=43 
> 8=43 9=0A
> stmlf.txt direct read (text): 1=41 2=0A 3=42 4=42 5=0A 6=43 7=43 8=43 9=0A
> stmlf.txt direct read (binary): 1=41 2=0A 3=42 4=42 5=0A 6=43 7=43 8=43 
> 9=0A

In all fairness then I believe there are some documentation
somewhere that states that fseek is only supported to
beginning of a record. I cannot find it right now,
but I believe I once saw it somewhere.

Arne





More information about the Info-vax mailing list