Needed - file delete and exists commands

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Needed - file delete and exists commands

Post by rbytes »

Why is an offset of 2 used for filepos in your example? From the description in the manual, I would think that the start of the file would be #.filepos(f,0)
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Needed - file delete and exists commands

Post by Mr. Kibernetik »

Because text files by default are created in Unicode code table. And first two bytes of such file are code table marker. You can see it if you use some binary file viewer for these files.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Needed - file delete and exists commands

Post by rbytes »

This is good information for the manual. ;)
The only thing that gets me down is gravity...

Post Reply