[BUG] write to file

Richard Gaskin ambassador at fourthworld.com
Mon Jan 25 10:44:10 EST 2016


Kay C Lan wrote:

 > The Dictionary says that if I open a file for 'update', then 'read
 > from file' to a specific position that when I 'write to file' it
 > will occur at the position I've read to but that's not what I'm
 > seeing in 6.6.5GM, 7.1.1 rc4 and 8.0 dp13 - OS X 10.9.5. In the
 > msg box:
 >
 > set the defaultFolder to specialFolderPath("documents")
 > put "trash this file.txt" into tFileName
 > put "This is a test." into URL ("file:" & 
specialFolderPath("documents") &
 > "/" & tFileName)
 > open file tFileName for update
 > read from file tFileName for 2 words
 > put it into tResult
 > write "open/read/write/close" to file tFileName
 > close file tFileName
 > put URL  ("file:" & specialFolderPath("documents") & "/" & tFileName) 
into msg
 > put cr & tResult after msg
 >
 > I was expecting:
 > This is open/read/write/close
 >
 > What I'm getting:
 > This is a test.open/read/write/close

Using v7.1.1 Stable on Ubuntu 14.04 I get:

    This is open/read/write/close
    This is

Looks like a Mac-specific bug.  After you file the report please note 
the bug number here so we can follow its progress.  Thanks.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com





More information about the use-livecode mailing list