#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    28
    Rep Power
    0

    Is it possible to create log file in delphi ?


    I surf the internet regarding this a lot... but i couldn't find the exact data....
    If it is possible means,help me with some basic examples for creating and accessing the log file.....

    Thanks in advance.....
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2006
    Location
    Carlsbad, CA
    Posts
    2,057
    Rep Power
    383
    Many ways here are a few you can lookup.

    TFileStream.
    Any TStrings descendant has a SaveToFile method.
    TMemoryStream also has a SaveToFile method.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    28
    Rep Power
    0
    Originally Posted by clivew
    Many ways here are a few you can lookup.

    TFileStream.
    Any TStrings descendant has a SaveToFile method.
    TMemoryStream also has a SaveToFile method.

    Thanks a lot..
    I got the solution....
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2008
    Posts
    350
    Rep Power
    7
    Here's a component that may help:

    http://www.cromis.net/blog/downloads/simplelog/

IMN logo majestic logo threadwatch logo seochat tools logo