DolphinDB Community
DolphinDB Community @DolphinDB_Comm ·
readBytes(fileHandle, sizeInByte) — read an exact number of bytes from a file handle (throws IOException on error)! 📂 Low‑level building block for custom binary file I/O and streaming. #DolphinDB #FileIO
1
DolphinDB Community
DolphinDB Community @DolphinDB_Comm ·
writeBytes(handle, bytes) — write full char buffer to file; returns bytes written or throws IOException. ✍️ Low‑level building block for custom binary I/O, streaming, and file utilities. #DolphinDB #FileIO
16
ahrammmm_🥀
ahrammmm_🥀 @AhramKhan18 ·
Day 52 of coding🐍 Today I focused on strengthening File I/O & Lambda: •Writing & reading files 📝 •Converting strings to int and list •Filtering with lambda •Understanding code flow step by step Small steps every day build strong logic #python #CodingJourney #Fileio #lambda
54
Shahrouz Nikseresht
Shahrouz Nikseresht @Shahrouzlogs ·
I keep hearing you must call `close()` after working with file I/O, but honestly, I don’t get why. What actually happens if you don’t? Anyone wanna break down what closing a file really means in simple terms? #FileIO #PythoNewbie
2
106
Shahrouz Nikseresht
Shahrouz Nikseresht @Shahrouzlogs ·
My relationship with file paths: it’s complicated. 😂 #PythonNewbie #FileIO
Shahrouz Nikseresht Shahrouz Nikseresht @Shahrouzlogs ·
My first #Python file bug was this: I copied the file path from File Explorer and threw it into my Python code. Was stuck on errors for like 15 minutes ‘cause Windows uses \ but Python’s not cool with it. Finally, I manually switched the slashes to / and it worked. 🙃 #FileIO
67
Shahrouz Nikseresht
Shahrouz Nikseresht @Shahrouzlogs ·
My first #Python file bug was this: I copied the file path from File Explorer and threw it into my Python code. Was stuck on errors for like 15 minutes ‘cause Windows uses \ but Python’s not cool with it. Finally, I manually switched the slashes to / and it worked. 🙃 #FileIO
131