you mean these? https://en.m.wikipedia.org/wiki/Split_(Unix)https://en.wikipedia.org/wiki/Cat_(Unix)
That is why I always recommend developers to know the unix world well. It is a heaven of tools that you may very well spend your lifetime just slowly getting know them that has been hiding all the time in your distro’s default repository and never been discovered by you.
But if it is about learning how things work that you about reinventing them, why not. Feel free to do so.
you mean these? https://en.m.wikipedia.org/wiki/Split_(Unix)https://en.wikipedia.org/wiki/Cat_(Unix)
That is why I always recommend developers to know the unix world well. It is a heaven of tools that you may very well spend your lifetime just slowly getting know them that has been hiding all the time in your distro’s default repository and never been discovered by you.
But if it is about learning how things work that you about reinventing them, why not. Feel free to do so.
during creation of this tool i learn and realise many things
file operation can't rely on method that read all the bytes, it maybe workable for file with known small size, but for program like this, it needs to write more codes to read it chunk/chunk and reused the memory because the file may be GB in size, loading everything to memory may cause exception or program not working in low end machine
also reading must use big enough buffer for optimized program speed and yet small enough to not causing memory exception
i am aware that there are many such tools even in Windows, but learning to write one makes me gain experience on something that seemingly easy but actually has many considerations to think of
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ. Forum members and moderators are responsible for their own posts.