Changeset 93 for trunk/lingosource/castlib1/bbedit_Utilities.ls
- Timestamp:
- 12/09/07 15:55:41 (4 years ago)
- File:
-
- 1 edited
-
trunk/lingosource/castlib1/bbedit_Utilities.ls (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/bbedit_Utilities.ls
r88 r93 510 510 511 511 -------- now write the results of the BBEdit diff back into the script members 512 memref1.scripttext = mGetTextFrom TempFile(me, tempSrcHFSPath)512 memref1.scripttext = mGetTextFromFile(me, tempSrcHFSPath) 513 513 514 514 if ilk(memref2) = #member then 515 memref2.scripttext = mGetTextFrom TempFile(me, tempSrcHFSPath2)515 memref2.scripttext = mGetTextFromFile(me, tempSrcHFSPath2) 516 516 end if 517 517 … … 545 545 end 546 546 547 548 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx549 -- xxxxxxxxxxxxxxxxxx Read text from file550 --------------------- helper for the above bbdiff handler551 552 on mGetTextFromTempFile me, pfad553 retval = ""554 555 if the runmode contains "Plugin" then return retval556 557 fio = new(xtra "fileio")558 559 if not objectP(fio) then return retval560 if (voidP(pfad) or (pfad = "")) then return retval561 562 if ilk(pfad) = #string then563 if pfad.length > 0 then564 fio.openFile(pfad, 1)565 if fio.status() = 0 then566 retval = fio.readFile()567 fio.closeFile()568 end if569 end if570 end if571 fio = void572 573 return retval574 575 end576 547 577 548
Note: See TracChangeset
for help on using the changeset viewer.
