Skip to content

Add size() to both FileInputStream and FileOutputStream#353

Merged
thekid merged 1 commit into
xp-framework:mainfrom
thekid:feature/file-stream-size
Aug 3, 2025
Merged

Add size() to both FileInputStream and FileOutputStream#353
thekid merged 1 commit into
xp-framework:mainfrom
thekid:feature/file-stream-size

Conversation

@thekid
Copy link
Copy Markdown
Member

@thekid thekid commented Aug 3, 2025

Example:

use io\streams\{FileInputStream, FileOutputStream};

$in= new FileInputStream('README.md');
$in->size(); // Size of README.md on disk

$out= new FileOutputStream('test.json');
$out->write(/* ... */);
$out->size(); // Size of file after writing

@thekid thekid merged commit 3a9ee3e into xp-framework:main Aug 3, 2025
15 checks passed
@thekid thekid deleted the feature/file-stream-size branch August 3, 2025 11:43
@thekid
Copy link
Copy Markdown
Member Author

thekid commented Aug 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant