473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

_tfopen()

Hi

I'm building an application for Pocket PC's , and i want to save data
in a file in a specified path.I'm saving the file like this FILE *f =
_tfopen(TEXT("profiles.txt"),TEXT("a"));Can someone provide a method or

aexample on how to specify a certain path , like for example :
"\Program Files\MyApp".I've tried FILE *f = _tfopen(TEXT("\\Program
FIles\\MyApp\\profiles.txt"),TEXT("a")); and it didn't work.
10x

Feb 13 '06 #1
9 12601
"grubbymaster" <gr**********@gmail.com> writes:
I'm building an application for Pocket PC's , and i want to save data
in a file in a specified path.I'm saving the file like this FILE *f =
_tfopen(TEXT("profiles.txt"),TEXT("a"));Can someone provide a method or

aexample on how to specify a certain path , like for example :
"\Program Files\MyApp".I've tried FILE *f = _tfopen(TEXT("\\Program
FIles\\MyApp\\profiles.txt"),TEXT("a")); and it didn't work.


The correct way to represent
\Program Files\MyApp\profiles.txt
as a C string literal is
"\\Program Files\\MyApp\\profiles.txt"

Beyond that, I don't think we can help you here. There's no _tfopen()
or TEXT() function in standard C. You'll need to ask in a forum
appropriate for your platform. There seems to be a newsgroup called
"microsoft.public.pocketpc.developer", but I don't know anything about
it.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 13 '06 #2
10x for u're help
Bye

Feb 13 '06 #3
"grubbymaster" <gr**********@gmail.com> writes:
10x for u're help
Bye


You're welcome. And if you have any C questions in the future, we
appreciate standard English ("you", not "u", for example), and please
read <http://cfaj.freeshell.org/google/>.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 13 '06 #4

"grubbymaster" <gr**********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Hi

I'm building an application for Pocket PC's , and i want to save data
in a file in a specified path.I'm saving the file like this FILE *f =
_tfopen(TEXT("profiles.txt"),TEXT("a"));Can someone provide a method or

aexample on how to specify a certain path , like for example :
"\Program Files\MyApp".I've tried FILE *f = _tfopen(TEXT("\\Program
FIles\\MyApp\\profiles.txt"),TEXT("a")); and it didn't work.


(slightly on-topic as the same issues can arise with fopen on any platform)

-- most implementations of fopen won't create directories that don't exist
(seems unlikely to be the problem here)

-- you haven't got another instance of the program lying around holding the
file open? (More generally, do you know if it's a namespace issue or a
file-access issue?)

--
RSH
Feb 13 '06 #5
In article <11*********************@z14g2000cwz.googlegroups. com>,
grubbymaster <gr**********@gmail.com> wrote:
Hi

I'm building an application for Pocket PC's , and i want to save data
in a file in a specified path.I'm saving the file like this FILE *f =
_tfopen(TEXT("profiles.txt"),TEXT("a"));Can someone provide a method or

aexample on how to specify a certain path , like for example :
"\Program Files\MyApp".I've tried FILE *f = _tfopen(TEXT("\\Program
FIles\\MyApp\\profiles.txt"),TEXT("a")); and it didn't work.
Allow me to be the first to say this - and I say it from the deepness of my
heart, with all the kindness and love one has come to associate with the
helpful posts you get in this newsgroup:

Not portable. Can't discuss it here. Blah, blah, blah.
10x


They'll slam u 4 ths.

Feb 13 '06 #6
Kenny McCormack wrote for the 82,637th time:
Allow me to be the first to say this - and I say it from the deepness of my
heart, with all the kindness and love one has come to associate with the
helpful posts you get in this newsgroup:

Not portable. Can't discuss it here. Blah, blah, blah.


My dear, dear Kenny, allow me to be the first to say this, and I say
it from the deepness of my heart, with all the kindness and love et
caetera, you sound like bitterness incarnate.
10x


They'll slam u 4 ths.


Now *that* is funny.
Feb 13 '06 #7
Grumble <de*****@kma.eu.org> writes:
Kenny McCormack wrote for the 82,637th time:

[snip]

Please don't feed the troll.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 13 '06 #8
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.org> wrote:
Grumble <de*****@kma.eu.org> writes:
Kenny McCormack wrote for the 82,637th time:

[snip]

Please don't feed the troll.


Please don't feed the "regular".

Seriously, guy, if they are amused by what I write, why should you piss on
their cornflakes?

Feb 13 '06 #9
Keith Thompson wrote:
Please don't feed the troll.


http://www.ultrafeel.tv/fun/pic-till...not-a-bear.jpg
Feb 13 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: flintridgeparkenfarker vonkerschnauzerheiden | last post by:
Hi, I needed to upgrade a driver on my laptop, couldn't get online with it, so I wrote a down and dirty file splitter enabling me to transfer the new modem drivers to it via floppy. The .exe was...
0
by: Wan-Hi | last post by:
Hello I write an app (with _UNICODE triggered) and want to retrieve a pointer to a file struct like this: //Let's open the file in binary mode for reading. FILE *f = _tfopen(pFilePath,...
7
by: inkexit | last post by:
I'm getting assertion errors when I try to import or export a file using this code. Please help. I don't even know what an assertion error is. #include <iostream> #include <iomanip> #include...
0
by: Martin Himmel | last post by:
Hello Newsgroup, I want to build xerces.lib (actually dynamical, but as there are many linker errors using the dll, the static .lib version) ich möchte die xercesc-lib erstellen. eigentlich die...
1
by: Martin Himmel | last post by:
Hello Newsgroup, I want to build xerces.lib (actually dynamical, but as there are many linker errors using the dll, the static .lib version) ich möchte die xercesc-lib erstellen. eigentlich die...
1
by: sandeepkavade | last post by:
i am trying to give my XML parsing code UNICODE support. if UNICODE is not defined it works fine. but if i define it it gives some garbage values. (i am showing it in mag box) the problem is in the...
1
by: noopurtiwari | last post by:
Hi All, I am porting a windows c++ code on to linux platform.The problen is, it uses functions like _tfopen and _taccess which are wndows specific function for providing unicode support. i was...
4
by: Matrixinline | last post by:
Hi All Here is my problem I am using a Unicode project and I tried to read the File like sPath = LPCTSTR; FILE* oFp = _tfopen(sPath,L"r"); while(!feof(oFp))
2
by: justin | last post by:
Hi , I have the following code which reads the first line of the Excel file and comes out of the loop. The test.xls file conmatains two columns in which first column has numerical data and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.