8000 tweak file api once more to be more useful + fix w+ flags by Vighnesh-V · Pull Request #27 · luau-lang/lute · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tweak file api once more to be more useful + fix w+ flags #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you ac 8000 count related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

Vighnesh-V
Copy link
Collaborator

File system api now looks like. Also fixes the r/w/+ operators for reading from a file

open (path, mode:supports r/w/a/+))
close(file handle)
read/write(file handle, string to write)

readtostring(path) -> opens a file, reads it into a string, closes it
write string to file(path) -> opens a file, writes it into a string, closes it

@Vighnesh-V Vighnesh-V merged commit 20c5050 into primary Dec 18, 2024
3 checks passed
@Vighnesh-V Vighnesh-V deleted the fs-tweak-api branch December 18, 2024 20:11
green-real pushed a commit to green-real/lute that referenced this pull request May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0