Create a log.txt (newbiee)

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Create a log.txt (newbiee)

  1. #1
    Join Date
    Sep 2007

    Create a log.txt (newbiee)

    I am try to create a dll that I could use with my GIS software (ESRI). I am hope to create a log file with user, data, time. Here is where I'm at now :

    using System;
    using System.Collections.Generic;
    using System.Text;

    namespace ClassLibrary1
    public class Class1
    Dim MyMxDoc = esriarcmapui.IMxDocument;
    Dim myDocInfo = esriarcmapui.IDocumentInfo;

    Set MyMxDoc = ThisDocument;
    Set myDocInfo = MyMxDoc;

    Sub FileIOExample()

    Dim pFileSystem = Object;
    Dim pFile = Object;
    Set pFileSystem = CreateObject("Scripting.FileSystemObject");
    Set pFile = pFileSystem.CreateTextFile("MXdoc.txt", True);

    UserName = 'Environment'

    pFile.WriteLine & " " & UserName;
    pFile.WriteLine "line number two" & " " & date();
    pFile.WriteLine "line number two" & " " & time();

    End SubN

    any help would be awesome. Thanks.

  2. #2
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    Welcome to DevX.

    What is your question?

Similar Threads

  1. Attn: Daniel Reber
    By joe in forum Database
    Replies: 0
    Last Post: 04-04-2003, 05:25 PM
  2. Re: (No subject)
    By Joe in forum Database
    Replies: 0
    Last Post: 04-04-2003, 05:13 PM
  3. Can't create a PARADOX file and insert records using ODBC
    By Steve Oliver in forum VB Classic
    Replies: 0
    Last Post: 07-26-2002, 12:30 PM
  4. Create Procedure
    By YC Choo in forum Database
    Replies: 5
    Last Post: 09-03-2001, 01:42 PM
  5. Replies: 3
    Last Post: 05-11-2001, 06:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center