Kixtart creating, writing, and reading an NTFS stream.

IF Open(3, "c:\data\scripts\test.txt:stream1.txt") = 0
$x = ReadLine(3)
WHILE @ERROR = 0
? "Line read: [" + $x + "]"
$x = ReadLine(3)
LOOP
ENDIF
$rc=close (3)
?
IF Open(5, "c:\data\scripts\test.txt:stream5.txt",5) = 0
WriteLine(5, "This is stream5"+@CRLF)
else
? "Failed to open stream"
ENDIF
$rc=close (5)
IF Open(3, "c:\data\scripts\test.txt:stream5.txt") = 0
$x = ReadLine(3)
WHILE @ERROR = 0
? "Line read: [" + $x + "]"
$x = ReadLine(3)
LOOP
ENDIF
$rc=close (3)


KiXtart is not required to have the ".txt" as part of the stream name, but if you want to verify the stream with notepad.exe you will have to include the ".txt".

[ 19. July 2003, 22:19: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/