Hello Bjorn,
> Does anyone know how I can write to a textfile from a given position?
> I see that there is a SEEK() function to find the current position in an
> open file but I can't find a PLACE() function or something like it. I'm
> trying to figure out how to change the coordsysclause in a MIF file.
Seeking to the start of the coordsys line in a MIF file and overwriting may
not be safe as the clause has variable length and there may not be enough
space for your new text. Although it sounds a waste of processing, the only
safe way of doing this is re-exporting the MIF file from MapInfo or
line-by-line file copying with replacement.
There is indeed no seek() function native to MapBasic. It's pretty straight
forward in a DLL, especially in C where this function has been a long
standing part of the standard run-time library,
Regards,
Warren Vick
Europa Technologies Ltd, U.K.
http://www.europa-tech.com
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]