Fix one initialization bug in cuts.c.  Add file access function for windows.