Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created July 24, 2012 14:52
Show Gist options
  • Save stanwu/3170417 to your computer and use it in GitHub Desktop.
Save stanwu/3170417 to your computer and use it in GitHub Desktop.
write a file
Dim objFSO
Dim objStream
Set objFSO = createobject("scripting.filesystemobject")
Set objStream = objFSO.CreateTextFile("test.csv", True)
for i=1 to 100000
buf=""
for j=1 to 10
buf = buf & i & "000" & j & ","
next
buf=buf & "1"
objStream.Writeline buf
next
msgbox "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment