Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


File Read, Write and Append

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> File Read, Write and Append
  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 >>
 File Read, Write and Append - 8/7/2008 2:35:37 PM   
  X BiLe


Posts: 9
Score: 0
Joined: 6/18/2008
Status: offline
this is extreme short code for Reading, Writing and Appending text files as well as an additional function...

Side note: i crush my code. (i want my code short and as direct as possible) if you cannot follow the code please reply and i will post the long formats.

before i display the examples lets cover the File System Objects .OpenTextFile Values
Reading = 1
Writing = 2
Appending = 8


Read a whole File


      

Read a single line of File


      

Write to File


      

Append to File


      

Get total Lines in file


      

Well hope some find it useful
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> File Read, Write and Append 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