6
votes
Vote UpVote

Ingenious!

The Delphi Geek – Sometimes you find a code fragment that’s so great you only wish it was your idea … const fm: array[Boolean] of Word = (fmCreate, fmOpenWrite);fs := TFileStream.Create(fileName, fm[FileExists(fn)]);Obvious – in retrospective. --- Published under the Creative Commons Attribution 3.0 license
Favorite? Off-Topic? gabr @ 2010-09-03 23:30

Statistics

Visits: 1228
Votes: 6
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

jamiei
Jørn E. Angeltveit
ket555
Ravaut123
Rodrigo
stukelly
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)