![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 824
Rep Power: 4
![]() |
Re: Troubleshooting with fread and fopen
Try
wavfile =fopen("cwav1.wav", "rb");
wavfile1 =fopen("cwav2.wav", "rb");
wavfile2 =fopen("cwav3.wav", "rb");
if(wavfile == NULL || wavfile1 == NULL || wavfile2 == NULL) |
|
|
|
|
|
#12 |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 550
Rep Power: 4
![]() |
Re: Troubleshooting with fread and fopen
Beat me to the punch!
if(wavfile ==NULL)|| if(wavfile1== NULL)|| if(wavfile ==NULL) I think you mean something like this: if(wavefile==NULL || wavefile1==NULL || wavfile2==NULL)
{
//code goes here
}
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|