-
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.
-
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
-
Replies: 0
Last Post: 04-04-2003, 05:25 PM
-
Replies: 0
Last Post: 04-04-2003, 05:13 PM
-
By Steve Oliver in forum VB Classic
Replies: 0
Last Post: 07-26-2002, 12:30 PM
-
By YC Choo in forum Database
Replies: 5
Last Post: 09-03-2001, 01:42 PM
-
By Sherlyn in forum Database
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks