diff options
Diffstat (limited to 'source/text/sbasic/shared/03/sf_textstream.xhp')
-rw-r--r-- | source/text/sbasic/shared/03/sf_textstream.xhp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/text/sbasic/shared/03/sf_textstream.xhp b/source/text/sbasic/shared/03/sf_textstream.xhp index 99c158e19f..1659d32a54 100644 --- a/source/text/sbasic/shared/03/sf_textstream.xhp +++ b/source/text/sbasic/shared/03/sf_textstream.xhp @@ -42,16 +42,16 @@ </bascode> <paragraph role="paragraph" id="par_id371585330787197" xml-lang="en-US">The file must be closed with the <literal>CloseFile</literal> method after all read or write operations have been executed:</paragraph> <bascode> - <paragraph role="bascode" id="bas_id91613599192241">myFile.CloseFile()</paragraph> + <paragraph role="bascode" localize="false" id="bas_id91613599192241">myFile.CloseFile()</paragraph> </bascode> <paragraph role="paragraph" id="par_id891582733781994" xml-lang="en-US">Optionally, the resources used by the <literal>TextStream</literal> instance can be released using the <literal>Dispose</literal> method:</paragraph> <bascode> - <paragraph role="bascode" id="bas_id761613599333614">Set myFile = myFile.Dispose()</paragraph> + <paragraph role="bascode" localize="false" id="bas_id761613599333614">Set myFile = myFile.Dispose()</paragraph> </bascode> <note id="par_id121612917368946">The methods in the <literal>TextStream</literal> service are mostly based on the <link href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1io_1_1XTextInputStream.html" name="XTextInputStream API"><literal>XTextInputStream</literal></link> and <link href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1io_1_1XTextOutputStream.html" name="XTextOutputStream API"><literal>XTextOutputStream</literal></link> UNO interfaces.</note> <h2 id="hd_id941585330787948" xml-lang="en-US">Properties</h2> - <bookmark xml-lang="en-US" branch="index" id="bm_id1001613600572485"> + <bookmark xml-lang="en-US" branch="index" id="bm_id1001613600572485" localize="false"> <bookmark_value>TextStream service;AtEndOfStream</bookmark_value> <bookmark_value>TextStream service;Encoding</bookmark_value> <bookmark_value>TextStream service;FileName</bookmark_value> @@ -228,10 +228,10 @@ <paragraph role="bascode" localize="false" id="bas_id931613595640789"> Dim FSO : FSO = CreateScriptService("FileSystem")</paragraph> <paragraph role="bascode" id="bas_id181613595641087"> 'Opens the text file with the names to be read</paragraph> <paragraph role="bascode" localize="false" id="bas_id291613595641480"> Dim inputFile as Object</paragraph> - <paragraph role="bascode" id="bas_id651613595641754"> Set inputFile = FSO.OpenTextFile("~/Documents/Students.txt")</paragraph> + <paragraph role="bascode" localize="false" id="bas_id651613595641754"> Set inputFile = FSO.OpenTextFile("~/Documents/Students.txt")</paragraph> <paragraph role="bascode" localize="false" id="bas_id711613595642109"> 'Reads all the contents in the input file as a single string</paragraph> - <paragraph role="bascode" id="bas_id81613595642474"> Dim allData as String</paragraph> - <paragraph role="bascode" id="bas_id191613595642766"> allData = inputFile.ReadAll()</paragraph> + <paragraph role="bascode" localize="false" id="bas_id81613595642474"> Dim allData as String</paragraph> + <paragraph role="bascode" localize="false" id="bas_id191613595642766"> allData = inputFile.ReadAll()</paragraph> <paragraph role="bascode" localize="false" id="bas_id961613595643093"> 'Splits the string into an array</paragraph> <paragraph role="bascode" localize="false" id="bas_id51613595643398"> Dim arrNames as Variant</paragraph> <paragraph role="bascode" localize="false" id="bas_id151613595643675"> arrNames = SF_String.SplitLines(allData)</paragraph> |