Skip to content

Commit 144d489

Browse files
Update Python article
1 parent 8c7a1c8 commit 144d489

File tree

2 files changed

+484
-59
lines changed

2 files changed

+484
-59
lines changed

articles/storage/files/storage-java-how-to-use-file-storage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ To use Java file I/O libraries, you must first mount a file share. See the follo
191191
In this article, we use the following path to refer to a mounted SMB file share on Windows:
192192

193193
```java
194+
String fileSharePath = "Z:\\file-share";
194195
```
195196

196197
### Example: Connect to a file share and enumerate directories using Java file I/O libraries
@@ -222,7 +223,7 @@ try {
222223

223224
### Example: Write to a file in a file share using Java file I/O libraries
224225

225-
The following code example shows how to write and append text with the `File` class:
226+
The following code example shows how to write and append text to a file:
226227

227228
```java
228229
import java.io.*;
@@ -257,7 +258,7 @@ try {
257258

258259
SMB clients that mount file shares can use file system locking mechanisms to manage access to shared files.
259260

260-
The following code example shows how to lock a file in a file share with share mode set to `None`. This share mode declines sharing of the current file until the file is closed.
261+
The following code example shows how to lock a file in a file share:
261262

262263
```java
263264
import java.io.*;

0 commit comments

Comments
 (0)