<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:jmichael_ll@yahoo.com" title="Jay Michael <jmichael_ll@yahoo.com>"> <span class="fn">Jay Michael</span></a>
</span> changed
<a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - BASIC OPEN FOR BINARY does not delete existing file"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=119102">bug 119102</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<td style="text-align:right;">Ever confirmed</td>
<td>1
</td>
<td>
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - BASIC OPEN FOR BINARY does not delete existing file"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=119102#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - BASIC OPEN FOR BINARY does not delete existing file"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=119102">bug 119102</a>
from <span class="vcard"><a class="email" href="mailto:jmichael_ll@yahoo.com" title="Jay Michael <jmichael_ll@yahoo.com>"> <span class="fn">Jay Michael</span></a>
</span></b>
<pre>(In reply to Buovjaga from <a href="show_bug.cgi?id=119102#c1">comment #1</a>)
2. Write a macro in LibreOffice that opens "x.txt" FOR BINARY, writes a few
bytes, and closes.
sub wb( fn as integer, byteval as integer )
dim v as byte
v = byteval
put #fn,, v
end sub
Sub Main
const fname = "c:\users\jay\x.txt"
dim fn as integer
fn = freefile()
open fname for binary as #fn
wb(fn,asc("n"))
wb(fn,asc("e"))
wb(fn,asc("w"))
wb(fn,13)
wb(fn,10)
close fn
End Sub
Change "fname" to point to your own home directory.
Do not have "x.txt" open in LibreOffice while running the macro "Main".</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>