Changeset 88 for trunk/lingosource
- Timestamp:
- 12/09/07 12:46:58 (4 years ago)
- Location:
- trunk/lingosource/castlib1
- Files:
-
- 2 edited
-
alexUtilities.ls (modified) (1 diff)
-
bbedit_Utilities.ls (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/alexUtilities.ls
r85 r88 208 208 209 209 return retval 210 end 211 212 213 214 215 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 216 -- xxxxxxxxxxxxxxxxxx Write text out to a file 217 --------------------- helper for the bbdiff and svn handler 218 219 on mSaveTextToTempFile me, theText, pfad 220 221 if ilk(pfad) <> #string then return 0 222 if length(pfad) < 1 then return 0 223 224 return mSaveToTextFile(me, theText, pfad) 225 210 226 end 211 227 -
trunk/lingosource/castlib1/bbedit_Utilities.ls
r82 r88 545 545 end 546 546 547 548 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx549 -- xxxxxxxxxxxxxxxxxx Write text out to a file550 --------------------- helper for the above bbdiff handler551 552 on mSaveTextToTempFile me, theText, pfad553 554 retval = 0555 556 if ilk(theText) <> #string then return retval557 558 fio = new(xtra "fileio")559 if not objectP(fio) then return retval560 561 if ilk(pfad) = #string then562 if pfad.length > 0 then563 564 fio.openFile(pfad, 0)565 if fio.status() = 0 then fio.delete()566 567 fio.createFile(pfad)568 if fio.status() = 0 then569 570 fio.openFile(pfad, 2)571 if fio.status() = 0 then572 573 fio.writeString(theText)574 575 if fio.status() = 0 then retval = pfad576 577 fio.closeFile()578 end if579 end if580 end if581 end if582 583 fio = 0584 585 return retval586 end587 547 588 548 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Note: See TracChangeset
for help on using the changeset viewer.
