hi thanks for that piece of code works a treat just a couple of questions aboutwhat things do
for (;;)
what does this do ?
and also
Type: Posts; User: bob56
hi thanks for that piece of code works a treat just a couple of questions aboutwhat things do
for (;;)
what does this do ?
and also
oooooh one last question dont know if this would be possible somehow but could you read 2 lines print them on the cosole in one line then go on to the next two lines print the on the next line of the...
brilliant thank you guys great job
hmm nope doesnt seem to be working when i use that code above it just seems to print out "..." every time you hit the return button and goes on for ever
right kinda yeh so if i just modify that code to say
char line[80];
do
{
if ( fgets( line, sizeof(line,stdin ) != NULL )
{
printf("%s...\n",line);
}
thansk for your reply yeh i was looking at fgets thinking that would be good but what i dont understand is where you tell the call what line to read from is it a number? l
i got this call from...
hi i am trying to read data from a file which is arranged as follows
item1
item2
item3
etc
etc
etc
i am trying to read this then reproduce it on the console window line by line i have...