Results 1 to 4 of 4

Thread: File Saving

  1. #1

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Question

    Ok, I'm not a pro at VB, as most of you know, but I thought I knew file saving. Guess not.

    I'm making an HTML editor, and I've got pretty much everything down, except that whenever I save the file it places quotations ( " ) at the beginning and the end of the file. I've tried trimming them off the string immediately before writing it to the file, but that doesn't work. So I'm guessing that it's my method of file saving. I'm using Output and I have no idea how else I can write a string to a file.

    Anyone know how I can fix this?
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  2. #2
    Guest
    Code:
    Open App.path & "\saved\htmlfile1.txt" For Output As #1
    Print #1, text1
    Close #1
    I bet you are using the Write function. The Write function will quote the whole file. The Print function will not put any quotes.

    [Edited by Matthew Gates on 07-29-2000 at 10:37 PM]

  3. #3

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268
    Damn, it's always the small things.
    You were right, I was using write.
    Thanks!
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  4. #4

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268
    Now could you try to help me out with my other post about the line feeds? I'm also getting those at each end of my string.

    I know it doesn't matter with HTML files, but I want it to look better in my program.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

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