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 :
public class Class1
Dim MyMxDoc = esriarcmapui.IMxDocument;
Dim myDocInfo = esriarcmapui.IDocumentInfo;
Set MyMxDoc = ThisDocument;
Set myDocInfo = MyMxDoc;
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();
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
Last Post: 04-04-2003, 06:25 PM
Last Post: 04-04-2003, 06:13 PM
By Steve Oliver in forum VB Classic
Last Post: 07-26-2002, 01:30 PM
By YC Choo in forum Database
Last Post: 09-03-2001, 02:42 PM
By Sherlyn in forum Database
Last Post: 05-11-2001, 07:04 AM
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