مرحبا
اسمي ملكة جمال نعومي ، رأيت بروفايلك اليوم ، وبعد ذلك تمر ، ط ملء المزيد...
User Profile
Collapse
-
Also fstream specifies ios::out and ios::in as default. And ofstream-ios::out.
ifstream-ios::in.
Cheers... -
No, I didn't use 'ios::' at all. I am just a beginner at C++ and I couldn't tell you what was going wrong. But everything seems fine now.
Thanks for your help....Leave a comment:
-
Hi
I was talking about the x button in the titlebar of the window.
I'm not sure but the way you have just mentioned is for the x button on the keyboard. Sorry for any misunderstandin g.
Thanks, hope you can help
P.s I am using VC++ 6 on Windows XP Pro...Leave a comment:
-
Delete file on program exit/close
Hi
Does anybody know how I could delete a file if and when the program is closed using the close (x) button and also (if possible but not necessary) do the same if the process for the program is killed. At the moment I am only able to do this if the ESC key is pressed. i.e. if the ESC key is pressed the program exits and the file in question is deleted.
Thanks for any help. -
Seems like it wasn't liking fstream to write to the txt file in the first place.Changed to ifstream and all fine
ThanksLeave a comment:
-
Thanks for the quick reply. I had tried ("\\\\computer_ name.....") before and it didn't work. I tried it again but no luck. I can't figure out what I'm doing wrong.
Thanks for any suggestions...Leave a comment:
-
Read, write, append and delete text file over network.
Hi
I need help with to access a text file over my local network.
I need to be able to create,read, write and delete the txt file on a specific machine(s) from any computer over the network. The folder where the txt file should be created is enabled for sharing and allows other users on the network to change files (XP Pro on all machines). My code is as follows:
[code=c]
// Writing Local IP to File
fstream myfile;... -
Thanks
I didn't think I would get a reply that quick.
I shall try the soft switch method....Leave a comment:
-
TCP server, WINSock, Using local IP
Hi
I am working on a security network camera system as part of a summer project of mine. The camera allows use of a TCP server for event configuration. I have coded a simple TCP server which beeps and accesses the camera interface (through a web browser) when a switch connected to the camera is pressed:
[code=C]
SOCKET client;
sockaddr_in from;
int fromlen=sizeof( from);
...Last edited by sicarie; Jul 11 '07, 01:13 PM. Reason: Thanks for using code tags, but they're [code=c] and just [/code]. Thanks!
No activity results to display
Show More
Leave a comment: