|
-
Jul 29th, 2000, 09:18 PM
#1
Thread Starter
Hyperactive Member
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?
-
Jul 29th, 2000, 09:29 PM
#2
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]
-
Jul 29th, 2000, 09:33 PM
#3
Thread Starter
Hyperactive Member
Damn, it's always the small things.
You were right, I was using write.
Thanks!
-
Jul 29th, 2000, 09:34 PM
#4
Thread Starter
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|