Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Truncate-a-file/J/truncate-a-file-1.j
Normal file
2
Task/Truncate-a-file/J/truncate-a-file-1.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
require 'files' NB. needed for versions prior to J7
|
||||
ftruncate=: ] fwrite~ ] fread@; 0 , [
|
||||
5
Task/Truncate-a-file/J/truncate-a-file-2.j
Normal file
5
Task/Truncate-a-file/J/truncate-a-file-2.j
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(1000$ 'abcdefg') fwrite 'text.txt' NB. create test file
|
||||
567 ftruncate 'test.txt' NB. truncate test file
|
||||
567
|
||||
fsize 'test.txt' NB. check new file size
|
||||
567
|
||||
Loading…
Add table
Add a link
Reference in a new issue