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, 05:25 PM
Last Post: 04-04-2003, 05:13 PM
By Steve Oliver in forum VB Classic
Last Post: 07-26-2002, 12:30 PM
By YC Choo in forum Database
Last Post: 09-03-2001, 01:42 PM
By Sherlyn in forum Database
Last Post: 05-11-2001, 06:04 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center