Re: Hi evryone!

"Patrick Sweeney" <[email protected]>
Newsgroups gmane.comp.windows.ce.freeware
Message-ID <002501c43443$7cb5d100$cf64a8c0@SYSENG1>
// Open a file and read a line from it.
FILE *stream;
 TCHAR INFFile[MAX_PATH];
 TCHAR line[MAX_PATH];

 wcscpy(INFFile, _T("\\FlashFx Disk\\wireon.txt"));
 // Open INF file
 if((stream = _wfopen(INFFile, _T("rt"))) == NULL){
    RETAILMSG(TRUE, (_T("\tCan't find Wire file: %s\r\nGetLastError
returned: %d\r\n"), INFFile, GetLastError()));
    exit(-1);
}
fgetws(line, MAX_PATH, astream);
_fcloseall();

Hope this helps you out. I use it all the time. If you have any questions,
feel free to ask, in this forum.
-Patrick




----- Original Message ----- 
From: SANDEEP DESHPANDE
To: [email protected]
Sent: Friday, May 07, 2004 4:24 AM
Subject: [wince-devel] Hi evryone!


Hi there,

I am novice in WinCE and embedded VC++. I am trying to
run an application which contains purely C code. I
need to build the workspace and make file in embedded
VC++. The target Pocket PC has Xscale processor. I am
using WinCE 4.2 version. I need to run the application
finally on the Xscale-iPAQ-Pocket PC. My application
has to read some input files and write into some
output files .I have no clue how to have this file I/O
becuase the functios 'fopen' ,'fread' are not reading
the files from anywhere no matter i keep the files in
parent directory or not.

Could anyone please help me out. I have nothing to do
with Platform builder.

Sandeep.




__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

Yahoo! Groups Sponsor
ADVERTISEMENT






Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/wince-devel/

To unsubscribe from this group, send an email to:
[email protected]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.