tell
tell — indicates file position.
tell (file)
fileA file pointer to a previously opened file. This may be either a file in the file system, or a string opened for read and write.
Current file position, as an integer.
This function returns the current file position as an integer representing the number of characters from the beginning of the file.
Gamma>msk = open("myseekfile.dat", "r",nil);#<File:"myseekfile.dat">Gamma>read_until(msk,"f");"Now is the time "Gamma>tell(msk);17Gamma>seek(msk, 18, 1);tGamma>tell(msk);35Gamma>msk = open("myseekfile3.dat", "w",nil);#<File:"myseekfile3.dat">Gamma>write(msk,"hello");tGamma>tell(msk);7Gamma>msk = open("myseekfile3.dat", "a",nil);#<File:"myseekfile3.dat">Gamma>write(msk,"goodbye");tGamma>tell(msk);16Gamma>
open, open_string, read, read_char, read_double, read_float, read_line, read_long, read_short, read_until, seek