hi friends,

I am working with file IO in C++, but there are some serious issues i am facing:

1) Initially I create some files(4 files), if they dont exists.

2) Then I read one file entirely i.e each record within the file, there are
30000 such records - 1 record contains [ length,string].

3) Then after that, the files are not getting created.
Is the stream getting corrupted???

Can anybody help me in that.

Thanks,
himanshu k.
symbian application developer.

Recommended Answers

All 3 Replies

Can you post the code if possible. also a sample file or a snip of the data in file.

It's kind of difficult to pinpoint a problem without seeing your code. So post your code and please use code tags

[edit] too slow. :(

Hi friends,

1) FILES CREATED.

2)

for (i = 0; i < wordsToRead; i++)
{
dicFile.read(&b_char,1);  // IO OPERATION


for(j = 0; j < b_char; j++)
{
dicFile.read((char*)&b_short, 2);   // IO OPERATION
}


}

3) AFTER THIS THE FILES ARE NOT CREATED.

Thanks,
himanshu k.
symbian application developer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.