Re: eof Programming Software Development by Grn Xtrm EOF means End of File. This link will give you some examples of how it is used in C. [URL="http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?answer=1048865140&id=1043284351#"]http://www.cprogramming.com/faq/cgi-bin/smartfaq.cgi?answer=1048865140&id=1043284351#[/URL] Re: EOF Programming Software Development by Narue EOF is a macro defined in <stdio.h>. It'… Re: EOF in C Programming Software Development by Narue EOF isn't a character, it's a flag returned by getchar denoting end-of-file. You can signal end-of-file from the command prompt (assuming Windows) with the Ctrl+Z keyboard combination. If you want to print the value of EOF, I'd suggest using printf: [code] printf("EOF: %d\n", EOF); [/code] Re: EOF and Excel Programming Software Development by hopalongcassidy EOF is a function that is used with files you have … Re: EOF in C Programming Software Development by wtstalin88 EOF is added by the compiler at the end of each file not by user ok sir. so dont b sad eof() help Programming Software Development by bennetk2 …; // variables for lines char r_tri, val_tri; // and calculation while (!infile.eof()) // loops until all data in the file is { // used…, eof() is End Of File // the infile is the name of … Re: eof() help Programming Software Development by WaltP [url=http://www.gidnetwork.com/b-58.html]This is why[/url] you get the last line twice. ([iCODE]feof()[/iCODE] is the same as [iCODE].eof()[/iCODE]) eof Programming Software Development by ravikumar.be09 I have the doubt on eof concept,so please explain that with some example,............ EOF Programming Software Development by DJSAN10 How to send EOF on console in linux? EOF Programming Software Development by Rupindersingh What is EOF. How is it generated? Which key corresponds to "end of file" on the keybord?? Re: EOF problem Programming Software Development by Dave Sinkula … may happen to include the value that equates to the EOF character, and that's what's causing problems.[/QUOTE]File… is absolutely no need for a file to contain an 'EOF character'. On a common system, a particular character in a… being examined in text mode. Blurring such subtleties by repeating 'EOF character' to me is a bit of a disservice. If… Re: EOF loop help please Programming Software Development by jonsca I got it to run fine as is on my machine: [code] Enter the first input (EOF to end): 10 Enter the next input (EOF to end): 10 Enter the next input (EOF to end): 10 Enter the next input (EOF to end): 30 Enter the next input (EOF to end): ^Z sum = 60.000000 [/code] What are you using for EOF? On Windows it's CTRL-Z (or F6) on *nix it's CTRL-D. Re: EOF loop help please Programming Software Development by tquiva …, I realized I had been pressing the wrong buttons for EOF However, why is your output different from mines? I entered… received: [CODE]Enter the first input (EOF to end): 10 Enter the next input (EOF to end): 10 Enter the next input… (EOF to end): 10 Enter the next input… Re: EOF problem Programming Software Development by vmanes …smartfaq.cgi?answer=1048865140&id=1043284351[/url][/QUOTE] Using EOF to find end of file is not what this thread… is about. It's NOT about reading till EOF char is encountered, but how to get past the… EOF character. Contrary to your reference, there is an EOF character (check your neighborhood ASCII chart… EOF loop help please Programming Software Development by tquiva …;, &x); /* While there is more input */ while (number != EOF) { /* Accumulate the sum */ sum = x + sum; /* Get …the next input */ printf("Enter the next input (EOF to end): \n"); number = scanf("%f"… EOF problem Programming Software Development by kartouss …;Ciphertext.txt"); myfile1.get(d); //priming read while(!myfile1.eof()) { for ( j=0; j<BC; j++) for ( i…;Text.txt"); myfile4.get(dxc); //priming read while(!myfile4.eof()) { for ( j=0; j<BC; j++) for ( …, some of the encrypted text is the same as EOF and thus i cant read the text that after it… Re: EOF problem Programming Software Development by WaltP … the ballpark of why I dislike the "read to eof" idiom of input gathering.[/aside][/QUOTE] [B]Dave[/B…] is referring to the line [ICODE]while(!myfile1.eof())[/ICODE] in your code. [url=http://www.gidnetwork.com/b… a bad thing to use -- [ICODE]feof()[/ICODE] and [ICODE].eof()[/ICODE] are identical. And after you fix the [ICODE… Re: EOF in C Programming Software Development by andrewll2 … But anyway... In a regular case using getchar() EOF is returned when a reading error happens. So checking … parentheses like this: [CODE]while ( ( c= getchar() )!=EOF )[/CODE] This way the program runs until there is an…;stdio.h> main() { int c; while ((c=getchar())!=EOF) { // exit the loop if an 'a' is read. … Re: EOF problem Programming Software Development by vmanes …'d said privately, you don't want to change the EOF char in your ciphertext - that will corrupt the data. In… order to read in the file, without the EOF character halting the read, do so in a binary fashion… you to get past the at least the first occurrence EOF (decimal 26) character. For reading the full file, control the… EOF and Excel Programming Software Development by Prozeen … with an Excel spreadsheet? I'm thinking that the EOF needs a file number. But in my code below, I … = app.Workbooks.Open(zza) Set sheet = book.Worksheets(1) (INSERT EOF CODE HERE.) Set sheet = Nothing book.Close SaveChanges:=True Set… Re: EOF loop help please Programming Software Development by WaltP A clarity suggestion: You are using a variable names [I]number[/I] to control the loop. But [I]number[/I] is not a number. It is an EOF indicator. I recommend all variables be named something that indicates their real use -- in this case maybe [I]indicateEOF[/I] or [I]EOFentered[/I]. Something like that. Re: EOF loop help please Programming Software Development by donaldw … [I]number[/I] is not a number. It is an EOF indicator. I recommend all variables be named something that indicates… Re: EOF "Disappears" Programming Software Development by jephthah … is system dependent, and is not necessarily EOF. For example, on unix, ctrl-d is …, it still doesn't always get interpreted as eof, as you have seen for microsoft OS, ctrl…-z is only EOF when it is found at the beginning of… the input stream. in this case EOF is a negative value (-1). when ctrl-z… EOF in C Programming Software Development by Vinod Supnekar … <stdio.h> main() { int c; while ((c=getchar()!=EOF)//get the sinle char putchar(c);//prnt it on cmd… } [/CODE] But i dnt knw how to enter EOF as i am user and wants to end somewhere!!!! How… Re: EOF in C Programming Software Development by andrewll2 … just enter cntl+z which equals to end of file (EOF) character.[/QUOTE] Assuming you meant ctrl+z. When typed to… a Win32 command line, it actually signals EOF. However, typed to a terminal under a *nix system, the… process). And actually Ctrl+D is the combination,which signals EOF,under *nix when typed to a terminal. EOF is not the end of the file Programming Software Development by Graphix … USB drive quickly. [B]Main problem: EOF in the middle of the file[/B] …source to destination: */ char c; while ( (c = getc(input)) != EOF ) { putc(c, output); } } else { /* If the output file…think it's because there is a EOF character in the middle of the file … Re: EOF is not the end of the file Programming Software Development by WaltP … [QUOTE=Graphix;]Assuming I find a solution to the EOF problem (probably using fseek, suggested by DeanM),...[/quote] …block... Keep it up until [ICODE]fread()[/ICODE] returns EOF. [QUOTE=Graphix;]... will fread work correctly with really …sizes. [QUOTE=Graphix;][B]Edit[/B]: gerard, if EOF is a standard value returned if the file-read … Re: EOF problem Programming Software Development by FireNet Use binary mode to open files which deal with encrypted text. That should solve the problem with the EOF char :) P.S Refer to my reply to your mail. If you get it working post the working program here :D Re: EOF problem Programming Software Development by Dave Sinkula Various subtleties, but 'EOF character' is not a good idiom to maintain. [url]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048865140&id=1043284351[/url] Re: EOF problem Programming Software Development by WaltP … related to his problem, telling him there's an [I]EOF character[/I] is teaching him 'bad grammar' which he will…