Re: error seeking in file

2010-11-22 Thread Mike Bonner
Ah k cool. In which case you don't need to specify a byte/char position at all so the whole 'start' question becomes moot. In this case, since you read the whole file, then rewrite the whole file, to simplify might consider using the URL keyword to do this. put url "file:test" into tContents-- to

Re: error seeking in file

2010-11-22 Thread Mike Kerner
Yeah, I snipped the code because I was trying to shorten everything up, but I actually open for reading then close, then reopen for writing and overwrite the entire contents. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this ur

Re: error seeking in file

2010-11-22 Thread Mike Bonner
gt; > put it into contents > > write contents to file filename at start > > > > put the result into theresult -- DEBUG > > answer "the result is"&& theResult -- DEBUG > > > > close file filename > > > > > > Since i was not ab

Re: error seeking in file

2010-11-22 Thread Mike Kerner
ite contents to file filename at start > > put the result into theresult -- DEBUG > answer "the result is"&& theResult -- DEBUG > > close file filename > > > Since i was not able to update the contents of the file I added the DEBUG > statements in. > >

error seeking in file

2010-11-22 Thread Mike Kerner
d the DEBUG statements in. When attempting to update filename, the message I am getting in theResult is "error seeking in file". What does that mean? How do I fix it? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit