PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Perfered file operations?

I was just wondering what the prefered file operation functions are for reading/writing files in windows CE.

I have written some older stuff with the generic C/C++ file io, but It doesnt always work as expected.
Technically, CreateFile is the primary supported method of file IO. It is the only method of file IO supported since the creation of Windows CE (stdio didn't get support until CE 2.12). Personally, I use stdio, and have never encountered any problems. CreateFile, etc, are just too bloated and multipurpose for my tastes (tale a look at the CreateFile docs to see what I mean). Plus stdio is about as portable as file IO gets.

Dan East
I have been using <cstdio> from C++, basically just C's file operations, without problems.