0

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.

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by himsymcpp
0

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

0

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.

Edited by happygeek: fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.