Re: Hi everyone! (reading a line from a file)
"alexvarghese2000" <alexvarghese2000-/[email protected]>
| Newsgroups | gmane.comp.windows.ce.freeware |
|---|---|
| Message-ID | <[email protected]> |
If u still have a probelm inreading the file do this way for opening file use create file with Open existing option you willgwt a solution Alex --- In [email protected], "Patrick Sweeney" <[email protected]> wrote: > Oops, just one slight typo, in that: > fgetws(line, MAX_PATH, astream); > should read > fgetws(line, MAX_PATH, stream); > Notice the word stream. > Sorry, and good luck, > -Patrick > > > > ----- Original Message ----- > From: Patrick Sweeney > To: [email protected] > Sent: Friday, May 07, 2004 10:56 AM > Subject: Re: [wince-devel] Hi evryone! > > > // 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. > > > > > > 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. ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/W4wwlB/TM --------------------------------------------------------------------~->