[vorbis] Getting started with vorbisfile_example.c (MS VC 6)

Greg Wooledge greg at wooledge.org
Thu Jun 27 17:47:37 PDT 2002


Michael Smith (msmith at labyrinth.net.au) wrote:

> >file * myfile;
> >myfile = fopen("C:\downloads\music.ogg","r");
> 
> This is an incredibly stupid 'feature' of DOS and windows. Use "rb" for
> the file open mode, or reading the file does not give you the file
> contents.

The code has another problem: the backslashes need to be doubled up.

  myfile = fopen("C:\\downloads\\music.ogg","rb");


-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg at wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |


-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis/attachments/20020627/edf4523a/part.pgp


More information about the Vorbis mailing list