Hello VB.net'ers. I've got a problem. I have a feeling it is an easy one, but for the life of me i cant figure it out. My project at the moment is to grab content from a website and use it in some way (havent worked out this part yet, still trying to get the data). Currently, i have grabbed the whole website and written it to a text file.. No dramas there. Then i read each line until i find a certain string... Again, no dramas. MY problem is; after reading and finding the certain string, i want the …

Member Avatar
Member Avatar
+0 forum 11

I have a file(myfile.txt) with the following lines, the records are semicolon delimited [I]Bon Jovi;Living + 2;EP;A+ Metal Maze;Aliotta Haynes Music;LP;B- Shore Brothers, The;Wipe my door, check;LP;C+ Bulman, Dane & Greg;Dane & Greg Bulman;LP;C- Calbert, Herb & The Mexico Brass;Rise;LP;A´[/I] . . . I want to write a c program which will read the file and display in the following manners sorted by [B]RATINGS[/B]. The program will display [B]10 rows at a time[/B] on the screen. ARTIST------------------ALBUM--------------------TYPE------------RATING Bon Jovi----------------Living + 2----------------EP---------------A+ Metal Maze--------------Aliotta Haynes Music------LP---------------B- Shore Brothers, The-----Wipe my door, check-------LP---------------C+ Bulman, Dane & Greg-----Dane & Greg Bulman--------LP---------------C- Herb & …

Member Avatar
Member Avatar
+0 forum 3

Hi this my first post here XD Its like this i have the code writen but it gives me this error Segmentation fault (core dumped) Can anyone tell me why? [code] MAX_BUFFER equ 10240 ; Constante que sera' usada como tamanho maximo de cada linha lida do teclado (10kb) FICH_ABERTURA equ 00q ; Constante que sera' usada como tipo de abertura pretendido: O_WRONLY + O_CREAT ;----------------------------------------------------------------------------- section .data fich_nome db "teste.txt", 0 ; Nome do ficheiro a abrir (em formato ASCIIZ) fich_handle dd 0 ; Variavel que vai guardar o numero (handle) do ficheiro fich_bytes dd 0 ; Variavel que …

Member Avatar
Member Avatar
+0 forum 1

Isn't it better to use the BufferedReader function readLine() instead of read() or read(byte[])? The reason I ask is because of potential memory wastage by the read() function. If I specify a byte array of size 10, then it will become capable of accepting ten bytes from the transmitter. However, if the transmitter transmits only four bytes, the remaining six bytes would be wasted. Keeping this in mind, it would be practically smarter to use the readLine() function to avoid any memory wastage. I am an absolute beginner in Java, so please pardon me if I sound incompetent.

Member Avatar
Member Avatar
+0 forum 2

Hi everyone, I'm working on a small project and have run into some problems. Briefly described, what I'm attempting to do is: I've a rather large text file with a different sentence and I need to find all the words in each sentence and add them to some sort of index, so that the structure is: key = word and value = line number(s). For example like this: mistake | 0, 2, 4, 6 sun | 0, 1, 5, 10 rain | 3, 4, 10, 22 I need to make a tool to find the occurrence of a word in …

Member Avatar
Member Avatar
+0 forum 6

I have a CSV with a large number of rows and 7 columns. I get the data from another source and it is labeled as say Column 1 is first name, 2 is last, 3 is age, 4 is gender, 5 is city. I need to be able to scan through to column 2 and if their last name is smith then take that row and remove it and write it to another file where all the smiths will be put. Thanks! C++ by the way

Member Avatar
Member Avatar
+0 forum 1

I need to know the syntax of how i can read a string from a file without using char array or char variable. i want to declare a variable of string type but its giving error . I have include <cstring>,<ctype> libraries. int main() { string s1; ifstream fin fin.open("myfile.txt"); while( !fin.eof()) { fin>>s1; // this line is giving error } fin.close(); return 0; }

Member Avatar
Member Avatar
+0 forum 2

Hi, I want to know to rows and columns of numbers from a text file. I do not want to read it as a string, but one number (including numbers with decimal) by itself. I tried using FileInputStream and DataInputStream, but I'm not really good at it. I don't know how to not read it as a double, and not a string.

Member Avatar
Member Avatar
+0 forum 2

I have a txt file that I need to read into a listview, but I need to read from a specific line in that file. Can someone point me in a direction on doing this. Below is a sample of the txt file to read, 6400,3200,2,95.5,84,76.6,0 1,2,-20,15,0,0,0,"NO",0,0 TOTAL GPM= 6400 HWT= 95.5 CWT= 84.0 IWBT= 76.6 ALTITUDE= 0 MIN CELLS= 1 MAX CELLS= 2 MIN RSRV=%-20 MAX RSRV=15 0,"P1626",1,1,1,1,2,-18.4,5407,2704,2955,-8.5,50,144,180,66,12,234207,239827 'start at his line 1,"P1626",1,1,1,1,2,-12,5714,2857,3159,-9.6,60,144,180,66,12,248567,254364 2,"P1628",1,1,1,1,2,-16.3,5501,2751,3073,-10.5,50,144,180,66,14,238599,245506 3,"P1628",1,1,1,1,2,-10.1,5812,2906,3258,-10.8,60,144,180,66,14,253159,260263 4,"P1628",1,1,1,1,2,-5.1,6088,3044,3376,-9.8,70,144,180,66,14,266139,273404 5,"P2028",1,1,1,1,2,-16.4,5497,2749,2952,-6.9,30,144,228,66,14,234169,240734

Member Avatar
Member Avatar
+0 forum 1

The End.