Results 1 to 4 of 4

Thread: about this print command thing

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,532
    Hey guys, to simplify my question in the last post, does anybody know how to write a string to a file without VB entering the return key after it writes?

    Thanks.

    Wengang
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  2. #2
    Guest
    If you use the FileSystemObject to write, then you can write normal strings that don't have a CrLf on the end.

    Although I thought that the normal Write command also did the same thing

    - gaffa

  3. #3

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,532
    Well, I have no problem with Write. The only reason I used Print is that it doesnt put those quotation marks around the text that you write to the file.

    Now, about this FileSystemObject. I am not familiar. Do you have any sample code of how to write using it?


    Thanks a lot.

    Wengang

    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

  4. #4

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,532
    Hey gaffa. You were exactly right.

    I found a good example in MSDN.

    Anyway, thanks so much.

    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

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