Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


writing into file

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,34465
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> writing into file
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 writing into file - 5/13/2006 7:50:30 PM   
  kobycool

 

Posts: 2
Score: 0
Joined: 5/13/2006
Status: offline
Original message moved by Country73
Reason : Wrong Forum
hi,
Im trying to write a simple string into file but the string in file always encircled by inverted commas:
I need only the string without this " "

The script:
tempfile="C:\TEMP.txt"
Open tempfile For Output As #1
filetime=FileDateTime(tempfile)
write #1,"hello"

 
output file:
"hello"
 
I need only the hello
 
thanks
Koby
 
 
 
Post #: 1
 
 RE: writing into file - 5/14/2006 5:59:43 AM   
  DiGiTAL.SkReAM


Posts: 1139
Score: 6
Joined: 9/6/2005
From: Florida, USA
Status: offline
Your code looks like it was written for use in Visual Basic or Quickbasic...
Here's how to do it in vbscript.


      


_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to kobycool)
 
 
Post #: 2
 
 RE: writing into file - 5/14/2006 4:51:00 PM   
  kobycool

 

Posts: 2
Score: 0
Joined: 5/13/2006
Status: offline
thanks for your answer, but I really didnt mention that Im using Quickbasic,
Is there any solution for Quickbasic?
thanks
Koby

(in reply to DiGiTAL.SkReAM)
 
 
Post #: 3
 
 RE: writing into file - 5/15/2006 2:09:35 AM   
  DiGiTAL.SkReAM


Posts: 1139
Score: 6
Joined: 9/6/2005
From: Florida, USA
Status: offline

      

That's as close as I can come, as I don't have QB installed where I am sitting right now.

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to kobycool)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> writing into file Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts