Pixel
Pixel
CC#
Created by Jesse on 6/4/2024 in #help
Handling reading large files in C#
you targetting windows 2000?
50 replies
CC#
Created by Jesse on 6/4/2024 in #help
Handling reading large files in C#
wym
50 replies
CC#
Created by Jesse on 6/4/2024 in #help
Handling reading large files in C#
why are you using such old .NET?
50 replies
CC#
Created by Jesse on 6/4/2024 in #help
Handling reading large files in C#
infact i believe you can just use Read(Span<Byte>), have a byte[] of size 1024 (or whatever chunk size) then Read(byte_arr) byte_arr will have the bytes, check if it has what you are looking for, and then keep going, the only issue with this is if the text you are looking for is inbetween 2 chunks but that's an easy enough fix
50 replies
CC#
Created by Jesse on 6/4/2024 in #help
Handling reading large files in C#
you should be able to read a chunk (there's a function for it, i don't dick around with streams that often but you can choose how many bytes to read) for say, 1024 bytes and then store that, scan it, and then free the memory (by overwriting the byte[] storing the chunk)
50 replies
CC#
Created by Jesse on 6/4/2024 in #help
Handling reading large files in C#
so from my understand: You get a file stream, you copy it to a memorystream (2x memory usage) and then copy it to an array (3x usage) This isn't great
50 replies
CC#
Created by Relevant on 4/20/2023 in #help
❔ Mock linux server
or use a vm
7 replies
CC#
Created by Relevant on 4/20/2023 in #help
❔ Mock linux server
ssh into your own system maybe
7 replies
CC#
Created by Elmishh on 4/18/2023 in #help
❔ using hypixel's api in a C# console app
make it public
40 replies
CC#
Created by A Name on 4/12/2023 in #help
❔ Writing to StreamWriter Fails
This would be the library i'd recommend, quite nice to work with and has plenty of documentation
111 replies
CC#
Created by A Name on 4/12/2023 in #help
❔ Writing to StreamWriter Fails
111 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
i got stuck wayy too many time in youtube course hell, googling and reading docs gets so much more information so much more quickly
36 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
experience is something you can only gain going out there and making stuff
36 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
of course
36 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
unfortunatly i don't have any other legal options 🤷
36 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
ok yeah now that you say it omnisharp support has been pretty buggy as of late
36 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
how so? i've been using VS Code for all my projects from when i was a begineer to this day and i haven't had any editor-specific issues, only time i used an IDE was when i tried out avalonia
36 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
fair enough
36 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
this along side with some googling and the microsoft docs should be a good start
36 replies
CC#
Created by _maxgold on 4/11/2023 in #help
❔ whats the best site or youtube channel to start learning c#?
it's what got me into C# and showed me the basics, but it's not complete and you shouldn't rely on it for 100% of your knowledge
36 replies