hello everyone
i have a large text file (about 5 GB) and with a program i should edit it with given information by user. when i use ordinary c++ functions related to files, it gives me error for that large file, however it works properly for a small text file.

how can i solve this problem? is there some special functions for large txt files?

Thanks & Regards

What exactly is the problem you have? Are you trying to read the whole file into memory at one time? Or just read small parts of it?

i should write 3 functions : search, insert, delete.
in search function user give me a number that is start of one line and i have to print that line for user.
in insert i have to write given data by user at the end of the file .
and in delet i have delet the line given it's number by user by put a special character at the end of it.

any reply??? :(

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.