Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
User:Joelmartin/Sandbox
(view source)
Revision as of 00:50, 10 April 2020
786 bytes added
,
00:50, 10 April 2020
m
→Title 1
Line 1:
Line 1:
=Title 1=
=Title 1=
+
<source lang="VBA">
+
Dim filePath As String
+
filePath = "C:\Users\joel.martin\Downloads\wikiMarkup.txt"
+
+
' The advantage of correctly typing fso as FileSystemObject is to make autocompletion
+
' (Intellisense) work, which helps you avoid typos and lets you discover other useful
+
' methods of the FileSystemObject
+
Dim fso As FileSystemObject
+
Set fso = New FileSystemObject
+
Dim fileStream As TextStream
+
+
' Here the actual file is created and opened for write access
+
Set fileStream = fso.CreateTextFile(filePath)
+
+
' Write something to the file
+
fileStream.WriteLine "something"
+
+
' Close it, so it is not locked anymore
+
fileStream.Close
+
+
' Here is another great method of the FileSystemObject that checks if a file exists
+
</source>
+
+
+
{| {{Table|sort|class=left}}
{| {{Table|sort|class=left}}
Joelmartin
Bots
,
Bureaucrats
, contributor,
Interface administrators
, lookupuser,
Administrators
4,000
edits
Navigation menu
Personal tools
English
Log in
Namespaces
User page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main Page
Welcome
Community portal
Join and Contribute
Facebook Page
All Categories
OCRobotX Org
◢ RobotX Team
⌬ WSU Clubs
⌬ OC Club
◢ Proj. Management
⌬ Project Timeline
⌬ WAM-V Application
⌬ Integration
⌬ Marine Science
⌬ Public Relations
⌬ Fundraising
◢ Team Management
⌬ ME Students
⌬ EE Students
⌬ CS Students
⌬ Math Students
◢ Software
◢ Active Partnering
Wiki Editing
Content Management
Basic Wikitex
Start New Page
Advanced Wikitext
Edit Links
Reference Card
Help: Categories
Help Everything
FAQ
Displaying Source Code
Displaying Math
Displaying 3D Objects
Recent changes
Random page
Discussion
RX Wiki Sandbox
Support
RX Wiki Users
RX Support-desk
RX blog-text
Wiki Development
update SQL
Magic Words
Import pages
mw-bugtracker
svn statistics
Tools
User contributions
Logs
View user groups
Special pages
Printable version