To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=66765
------- Additional comments from [EMAIL PROTECTED] Tue Jun 27 01:29:53 -0700
2006 -------
New example, now working correctly:
Sub Test_i66765
oUcb = createUnoService("com.sun.star.ucb.SimpleFileAccess")
' Assuming the file test.txt contains: Example
oFile = oUcb.OpenFileReadWrite("file:///d:/test.txt")
print "Length = " + oFile.getLength()
oFile.seek(3)
print "Position = " + oFile.getPosition()
Dim aOutData as Object
Dim nBytesToRead as Integer
nBytesToRead = 3
print "Read " + oFile.readBytes( aOutData, nBytesToRead ) + " bytes"
Dim i as Integer
Dim t$
for i = 0 to nBytesToRead - 1
t$ = t$ + chr(aOutData(i))
next i
print "Read text: " + t$
print "Position = " + oFile.getPosition()
oFile.closeInput()
End Sub
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]