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
    Posts
    0

    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();

    pFile.Close
    End SubN
    }
    }




    any help would be awesome. Thanks.

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DevX.

    What is your question?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Attn: Daniel Reber
    By joe in forum Database
    Replies: 0
    Last Post: 04-04-2003, 06:25 PM
  2. Re: (No subject)
    By Joe in forum Database
    Replies: 0
    Last Post: 04-04-2003, 06: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, 01:30 PM
  4. Create Procedure
    By YC Choo in forum Database
    Replies: 5
    Last Post: 09-03-2001, 02:42 PM
  5. Replies: 3
    Last Post: 05-11-2001, 07: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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