The title of the document

tianfengqn

Member
Licensed User
Longtime User
Please See The Attached picture.the green outlined the files" aide.txt&DateTime.Date(DateTime.Now)"should become "aide.txt02/23/2012".How can i do it?
 

Attachments

  • 2.jpg
    15.2 KB · Views: 176

JonPM

Well-Known Member
Licensed User
Longtime User
Please See The Attached picture.the green outlined the files" aide.txt&DateTime.Date(DateTime.Now)"should become "aide.txt02/23/2012".How can i do it?

Change it to "aide.txt " & DateTime.Date(DateTime.Now)

Sent from my DROIDX
 
Upvote 0

tianfengqn

Member
Licensed User
Longtime User
The title of the document(1)

I can't According to the method of you do, but I'm not up to me to the effect.
please see the following code:

Dim Writer As TextWriter
Writer.Initialize(File.OpenOutput(File.DirRootExternal,"aide.txt"&DateTime.Date(DateTime.Now),False))
Writer.writeline("Electricity 1 data and time :")
Writer.writeline("EditText1.Text")
Writer.Close
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User

I'm guessing you have a file that is updated daily? If that's the case then you want:
Writer.Initialize(File.OpenOutput(File.DirRootExternal,"aide" & DateTime.Date(DateTime.Now) & ".txt",False))

This returns: aide02/28/2012.txt (the date changes daily obviously)
 
Last edited:
Upvote 0

tianfengqn

Member
Licensed User
Longtime User



I have done it .but I Still haven't reached,Please see the attached document.
 

Attachments

  • QQ??20120229194235.jpg
    10.8 KB · Views: 137
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…