Hello, this is a very strange problem. I had first put this discussion in the Linux and Unix thread, since I believe it is actually a problem with how the data is entered via but the vi editor, but I closed those out and will put it in the C thread, since it is being read with C code. Below is the code that is reading the data: strcpy(passw,"P7"); fscanf(fip, "%3s", ckod); /* card # 164 */ fprintf(ff16,"\n\n%12s%12s\n", "card# 164 :", "Password "); printf("passwd is %s\n", ckod); if(strcmp(passw,ckod)!=0) { printf("\n%64s\n%80s\n", "E R R O R !", "Password is incorrect. Please …

Member Avatar
Member Avatar
+0 forum 4

Hello, I am having a very strange problem. I am entering data in a file with the vi editor, and the data is to be read by a C program. Each line of data has to be 80 colums, with spaces to file out the line if there is no more data. Most of the data file is read correctly, but this part of the data is giving me probelms: P7 1 0.005 0.007 3.150 3.050 2.900 2.850 2.700 2.600 2.550 2.450 2.300 2.150 2.050 1.900 1.800 1.650 1.500 1.400 1.250 1.150 1.050 1.000 0.900 0.850 0.750 0.700 0.650 0.000 …

Member Avatar
Member Avatar
+0 forum 3

Hello, I am having a very strange problem. I am entering data in a file with the vi editor, and the data is to be read by a C program. Each line of data has to be 80 colums, with spaces to file out the line if there is no more data. Most of the data file is read correctly, but this part of the data is giving me probelms: P7 1 0.005 0.007 3.150 3.050 2.900 2.850 2.700 2.600 2.550 2.450 2.300 2.150 2.050 1.900 1.800 1.650 1.500 1.400 1.250 1.150 1.050 1.000 0.900 0.850 0.750 0.700 0.650 0.000 …

Member Avatar
Member Avatar
+0 forum 2

Hello all, my name is Marvin. I am working on obtaining my linux system administrator certificat. I created a file with a few sentences. The only task that I am having problems with is to delete word "and" using the vi last-line mode. I know hot do delet a word with out using the last-line mode by just moving to the word and typing 'x' until the word is gone. But this is not how I am supposed to do it. I have read the entire chapter on the vi section and I cannot find an example or the command …

Member Avatar
Member Avatar
+0 forum 3

How do Vim and Emacs allow the whole console to be used, even after an enter has been recieved? (this can be Windows-specific) I've got unbuffered input, and I have methods for output to print to anywhere in the console. What methods do Vim/Emacs employ to make the entire screen editable? I realize I won't be able to use streams, but I also can't understand how unbuffered input would do this either?

Member Avatar
Member Avatar
+0 forum 1

can any body give me the correct syntax of for loop to be used in vi editor in ubuntu..... i know like this....:- for (( initialisation;condition;increment )) do "statements for do" done

Member Avatar
Member Avatar
+0 forum 4

Hello all i have created a java application which is writing to log files to specific path.logs are created successfully.When i use cat command to show the contents it is showing the correct data but when i use vi to open the file it is showing the contents like binary files. When i use file command to check the type of file it is showing that it is a binary file while i wanted to create a text file.Code is as follows [CODE]public static void logResponse(ArrayList list,String LOG_PATH) { System.out.println("Response list is"+list.toString()); String date=now(); String Filename=date+"_LogResponse.txt"; System.out.println("Filename is"+Filename); File req=new …

Member Avatar
Member Avatar
+0 forum 1

The End.