-
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?
-
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]
-
Damn, it's always the small things.
You were right, I was using write.
Thanks!
-
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.