sloppycode.net
FSO Reference
Collections
Drives
Files
Folders
Drive
AvailableSpace
DriveLetter
DriveType
FileSystem
FreeSpace
IsReady
Path
RootFolder
SerialNumber
ShareName
TotalSize
VolumeName
File
Attributes
Copy
DateCreated
DateLastAccessed
DateLastModified
Delete
Drive
Move
Name
OpenAsTextStream
ParentFolder
Path
ShortName
ShortPath
Size
Type
Folder
Attributes
Copy
CreateTextFile
DateCreated
DateLastAccessed
DateLastModified
Delete
Drive
Files
IsRootFolder
Move
Name
ParentFolder
Path
ShortName
ShortPath
Size
SubFolders
Type
FSO
BuildPath
Collections
CopyFile
CopyFolder
CreateFolder
CreateTextFile
DeleteFile
DeleteFolder
Drive
DriveExists
Drives
File
FileExists
Folder
FolderExists
GetAbsolutePathName
GetBaseName
GetDrive
GetDriveName
GetExtensionName
GetFile
GetFileName
GetFileVersion
GetFolder
GetParentFolderName
GetSpecialFolder
GetTempName
MoveFile
MoveFolder
OpenTextFile
TextStream
TextStream
AtEndOfLine
AtEndOfStream
Close
Column
Line
Read
ReadAll
ReadLine
Skip
SkipLine
Write
WriteBlankLines
WriteLine
TextStream.WriteLine(stringToWrite)
Writes stringToWrite as an entire line, including a newline character (typically \r\n).Also moves the file pointer to end of the line.
<% '***************** WriteLine Set fso = CreateObject("Scripting.FileSystemObject") Set textStreamObject = fso.OpenTextFile(Server.Mappath("\chris") & "\myfile.txt",8,true,0) textStreamObject.WriteLine("this is a textfile") textStreamObject.Close ' make sure you call the close method or the file will not be written Set textStreamObject = Nothing Set fso = Nothing ' (nb If the text file being opened is a single line with no newline, writeline will just ' add this onto the end of the existing line - it does prepend a newline first) %>
› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search