Here's one way of doing it:
#include <stdio.h>
int main ()
{
FILE *fp;
if ((fp=fopen("c:\\test.bin", "r")) == NULL)
{
Type: Posts; User: jizzer
Here's one way of doing it:
#include <stdio.h>
int main ()
{
FILE *fp;
if ((fp=fopen("c:\\test.bin", "r")) == NULL)
{
You could try gotoxy(), more info in the FAQ.
The Borland compiler should be fine. Another compiler is Dev-C++ which has its own GUI, resource editor and stuff. Although I recommend VC++, it has its advantages.
...
http://www.mindcracker.com/mindcracker/c_cafe/wininet.asp.
Try searching Google, you should be able to find what you want.
ErionD, I did'nt mess with your method much but it did'nt compile unlike Preludes.
I'm setting text in an edit control and if the buffer is'nt empty, it messes up.
Thanks for the help &...
Lemme retry.
char dude[500] = "hello there, yes i know i'm cool";
now I want to make the variable of type char NULL, or have nothing in it.
char dude[500] = ""; // no data in it now...
How can I clear the buffer, it is a char variable of unknown size and I want to get all the existing data out, how?
Just so you know, I'm Unregistered above.
I know that was'nt THE problem, I was just stating that the code you posted had syntax errors. :)
Regarding the code, I'm no expert but it seems pretty...