Skip to content
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 account related emails.

Already on GitHub? Sign in to your account

Improve file handling #35

Closed
4 tasks done
Flipez opened this issue Jan 14, 2022 · 1 comment · Fixed by #36
Closed
4 tasks done

Improve file handling #35

Flipez opened this issue Jan 14, 2022 · 1 comment · Fixed by #36
Labels
enhancement New feature or request

Comments

@Flipez
Copy link
Owner

Flipez commented Jan 14, 2022

Implement and adjust file methods:

  • file.read(INT) takes number of bytes and reads the bytes from the position
  • file.seek(INT, INT) seeks the cursor for arg 0 amount from arg 1 position
  • file.content() reads the complete file as string
  • file.position() returns the current cursor position
@Flipez Flipez added the enhancement New feature or request label Jan 14, 2022
@MarkusFreitag
Copy link
Collaborator

file.write(STRING)

alternative for seeking file.seek(INT, BOOL) with true being absolute and false=relative counting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants