Regarding Directory And File Handling

I have noticed these things:
1. Using mkdir() function we cannot create a folder whose name's length is greater than 8.
2. Also, we cannot create a folder inside a directory whose name's length is greater than 8.
3. using ofstream/ifstream we cannot create/write a file whose name's length is greater than 8.

what to do when we want the above mentioned lengths to be greater than 8??
3. using ofstream/ifstream we cannot create/write a file whose name's length is greater than 8.
I don't know about the others, but I'm pretty sure this one's not true, unless you're working in a weird OS.
@Helios - I am working in Borland/Turbo C++.. My OS is Win 10
this one's not true, unless you're working in a weird OS.
I am working in Borland/Turbo C++..
... Or weird compiler. Turbo C++ was made for DOS. Dos had limit of 8 character names. Turbo C++ has same limitation as DOS. Do not use Turbo C++ unless your OS is DOS.
Actually do not use it at all, as it does not respect C++ standard and "Turbo C++" has little relation to real world C++
Last edited on
@MiiniPaa . Thanks I got the reason for that 8 charcaters limitation... If only my School taught me in some better compiler..... I will practice in Dev C++ compiler or whatever is the compiler used this day once I pass my high school.
I will practice in Dev C++ compiler
Just not Bloodshed one. Take Orwell Dev-C++, Code::Blocks+MinGW, Visual Studio 2015 Community Edition...
Topic archived. No new replies allowed.