E
edu.mvk
Hi,
i'm trying to use QFile in my program and trying to read a line from
that file as :
Q_ULONG maxLen=60;
QFile mapFile("/users/a22596/mapping");
if( !mapFile.open(IO_ReadOnly) )
exit(0);
if( !mapFile.exists() )
exit(0);
the above code is working fine....
but when i tried reading a line as below :
mapFile.readLine(p_qcop_channel_pt,maxLen)
a Segmentation Fault is occurring..
Please help me how to use this "readLine" function.
i'm trying to use QFile in my program and trying to read a line from
that file as :
Q_ULONG maxLen=60;
QFile mapFile("/users/a22596/mapping");
if( !mapFile.open(IO_ReadOnly) )
exit(0);
if( !mapFile.exists() )
exit(0);
the above code is working fine....
but when i tried reading a line as below :
mapFile.readLine(p_qcop_channel_pt,maxLen)
a Segmentation Fault is occurring..
Please help me how to use this "readLine" function.