Results 1 to 4 of 4

Thread: How to save text ,date and time at the same time ??

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    1

    How to save text ,date and time at the same time ??

    Hi guys.. I am doing my school on project on rs 232. it involoves VB. I have found out how to save text in .txt file in the code. But i have no idea when i save this particular text for instance with time and date oso..

    For example my i can do this.

    I want to save " Hi i am VIJAY "

    when i open the text file i can see " Hi i am VIJAY"

    But what i want is

    When i open the text file i want to see " Hi i am VIJAY 10:35 24/01/2010 "

    is there any help i can find ?

  2. #2
    Fanatic Member BlindSniper's Avatar
    Join Date
    Jan 2011
    Location
    South Africa
    Posts
    865

    Re: How to save text ,date and time at the same time ??

    when you write text to the File add this to the string you are writing
    Code:
    Writeline("Hello" & Now.ToString)

    Useful CodeBank Entries of mine
    Expand Function
    Code Compiler
    Sudoku Solver
    HotKeyHandler Class

    Read this to get Effective help on VBForums
    Hitchhiker's Guide to Getting Help at VBF

  3. #3
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: How to save text ,date and time at the same time ??

    Sure. Where do you wish to save it from?
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: How to save text ,date and time at the same time ??

    Duplicate threads merged - please post each question (or variation of it) only once.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width