<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ファイルサイズの大きいテキストデータの読み込み方法について in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B5%E3%82%A4%E3%82%BA%E3%81%AE%E5%A4%A7%E3%81%8D%E3%81%84%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E6%96%B9%E6%B3%95%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/m-p/344220#M59382</link>
    <description>&lt;P&gt;LoadTextFile can do it. (&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1893"&gt;@Audrey_Shull&lt;/a&gt;&amp;nbsp;there are two versions in the scripting index, one is more complete than the other.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29091i5A3A67E5374C0306/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Untested code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;blob = loadtextfile("reallyBig.txt", blob( readLength( 1e9 ), readOffsetFromBegin( n * 1e9 ) ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It gives the data back as a BLOB, not as text. Blobs can be &amp;gt; 4GB, but JSL strings are limited to &amp;lt; 2GB. 1e9 is almost 1GB. "n" could be 0, 1, 2, ... to step through the file.&lt;/P&gt;&lt;P&gt;The reason it returns a BLOB: multi-byte characters may be split across the 1e9 boundary. If there are only single-byte characters, great! You can probably convert the blob to a string using (again, untested code)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;jslString = blobToChar( blob, "utf-8" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let us know how this works for you, thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2020 12:27:59 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2020-12-24T12:27:59Z</dc:date>
    <item>
      <title>ファイルサイズの大きいテキストデータの読み込み方法について</title>
      <link>https://community.jmp.com/t5/Discussions/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B5%E3%82%A4%E3%82%BA%E3%81%AE%E5%A4%A7%E3%81%8D%E3%81%84%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E6%96%B9%E6%B3%95%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/m-p/344079#M59373</link>
      <description>&lt;P&gt;約120GBのテキストデータを読み込む場合、メモリが不足して読み込むことができません。&lt;BR /&gt;分割して読み込むなど、何か対処方法があれば、教えていただけないでしょうか。&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:49:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B5%E3%82%A4%E3%82%BA%E3%81%AE%E5%A4%A7%E3%81%8D%E3%81%84%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E6%96%B9%E6%B3%95%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/m-p/344079#M59373</guid>
      <dc:creator>Yu1</dc:creator>
      <dc:date>2023-06-11T11:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: ファイルサイズの大きいテキストデータの読み込み方法について</title>
      <link>https://community.jmp.com/t5/Discussions/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B5%E3%82%A4%E3%82%BA%E3%81%AE%E5%A4%A7%E3%81%8D%E3%81%84%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E6%96%B9%E6%B3%95%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/m-p/344220#M59382</link>
      <description>&lt;P&gt;LoadTextFile can do it. (&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1893"&gt;@Audrey_Shull&lt;/a&gt;&amp;nbsp;there are two versions in the scripting index, one is more complete than the other.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29091i5A3A67E5374C0306/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Untested code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;blob = loadtextfile("reallyBig.txt", blob( readLength( 1e9 ), readOffsetFromBegin( n * 1e9 ) ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It gives the data back as a BLOB, not as text. Blobs can be &amp;gt; 4GB, but JSL strings are limited to &amp;lt; 2GB. 1e9 is almost 1GB. "n" could be 0, 1, 2, ... to step through the file.&lt;/P&gt;&lt;P&gt;The reason it returns a BLOB: multi-byte characters may be split across the 1e9 boundary. If there are only single-byte characters, great! You can probably convert the blob to a string using (again, untested code)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;jslString = blobToChar( blob, "utf-8" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let us know how this works for you, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 12:27:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B5%E3%82%A4%E3%82%BA%E3%81%AE%E5%A4%A7%E3%81%8D%E3%81%84%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E6%96%B9%E6%B3%95%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/m-p/344220#M59382</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-12-24T12:27:59Z</dc:date>
    </item>
  </channel>
</rss>

