Hi all
I'm using a 'STRING' variable to store the entire contents of a file. Is there any possibility of buffer overflow if the content of the file is large? (eg: say size of the file is 30MB).
Thanks in advance
dodo_ind 0 Newbie Poster
Recommended Answers
Jump to PostPrevious: strings can only hold a certain amount of data, so I'd assume so.
Have you considered using the non-standard rope to meet your data needs? Or possibly a vector<char> implementation?
Edit: Actually my previous post might need some more investigation, so I'm omitting it. My apologies.
All 3 Replies
Alex Edwards 321 Posting Shark
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Alex Edwards 321 Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.