[Gambas-user] Error in file read when length is a negative value ?

Gianluigi bagonergi at gmail.com
Sun Jan 17 10:25:28 CET 2021


I'm afraid there is an error in your text file, the attachment here works
fine and is short.

Regards
Gianluigi

Il giorno dom 17 gen 2021 alle ore 10:03 Vinode Singh Ujlain <
ujlain at gmail.com> ha scritto:

> Yes SEEK could help .,. but code becomes longer, I need to read last 5
> bytes from EOF .. I was looking at http://gambaswiki.org/wiki/lang/read?nh
>
> *Variable* *= READ* [ *#* *Stream* *,* ] *Length* *here length can be +/-
> , +ive reads from beginning of file and -ive reads backwards from EOF. But
> that is not happening, ERROR ?*
>
>
> Warm Regards,
> Vinode Singh Ujlain
> https://www.linkedin.com/in/ujlain/
> ------------------------------
> On 17/01/21 2:25 pm, Gianluigi wrote:
>
>
>
> Il giorno dom 17 gen 2021 alle ore 08:39 Vinode Singh Ujlain <
> ujlain at gmail.com> ha scritto:
>
>> Please see attached project.
>> *read stream length* returns the same string regardless of + /- length
>> given. As per documentation , a negative length should return characters
>> from end of file
>> --
>> Warm Regards,
>> Vinode Singh Ujlain
>> https://www.linkedin.com/in/ujlain/
>> ------------------------------
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
> Hi Vinode,
> are you in search for the Seek key ?
> http://gambaswiki.org/wiki/lang/seek
>
> Regards
> Gianluigi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210117/41e178ce/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LastString.zip
Type: application/zip
Size: 14748 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210117/41e178ce/attachment-0001.zip>


More information about the User mailing list