224 Topics

Member Avatar for
Member Avatar for Kitson

Hi Guys, I'm really struggling getting to grips with C++ I need to read a .txt file which contains something similar to this: [CODE]Eng.Speed Torque 1000.0, 34.55 3800.0, 46.58 6600.0, 47.44 9400.0, 48.75 12200.0, 39.79 15000.0, 24.61[/CODE] I'm trying to: .Open a file named torque1.txt .extract the data .I want …

Member Avatar for WaltP
0
808
Member Avatar for danielsikes

Hi, [CODE] <table class="info"> <thead> <tr> <th>Mailing Address</th> <th>Location Address</th> </tr> </thead> <tbody> <tr> <td><address>123 Somewhere ST.<br/>Somewhere, CA 123456</address></td> <td><address>123 Anotherplace Ln.<br/>Somewhere Else, CA 123434</address><br/></td> </tr> </tbody> </table> </div> <h3>Information</h3> <div class="blockContent borderedContent"> <table class="entryForm"> <tbody> <tr> <th>Website:</th> <td>http://somewebsitehere.com</td> </tr> <tr> <th>Segment 1:</th> <td>SomeInfo Here</td> </tr> <tr> <th>Email:</th> <td><a class="mailLink" …

Member Avatar for pritaeas
0
241
Member Avatar for nickecarlo

I have the following piece of code. I do not understand why its not working. I'd really appreciate help on this. [CODE]import java.util.Scanner; import java.io.*; class ReadFiles { String [] codes = new String[99]; int i = 0; private Scanner readCodes; public void openCodesFile() { try { readCodes = new …

Member Avatar for nickecarlo
0
10K
Member Avatar for Lucaci Andrew

I keep getting this error and i don't understand why. [code]Traceback (most recent call last): File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 105, in <module> fr_runt() File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 95, in fr_runt run.run() File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 58, in run self.data.write(file, key, value) File "E:\University\Workspace eclipse\dictionares\src\dcts\dicts.py", line 23, in write fh = …

Member Avatar for Lucaci Andrew
0
304
Member Avatar for Graphix

Hi everyone, I'm currently working on a cross-platform project to copy data from the computer onto a USB drive quickly. [B]Main problem: EOF in the middle of the file[/B] It's going good so far, but I stumbled across a problem in my copy_file function: [CODE]int copy_file(char *source_path, char *destination_path) { …

Member Avatar for Graphix
0
2K
Member Avatar for aristosv

I have a form with a textbox and I want that textbox to read from http.conf on line 162. Line 162 reads ServerAdmin [email]you@yourdomain.com[/email] Shouldn’t this code work? [CODE]Public Class Form1 Dim apacheconf = "c:\httpd.conf" Dim line() As String = IO.File.ReadAllLines(apacheconf) Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles …

Member Avatar for kingsonprisonic
0
169
Member Avatar for Awilson089

Not sure if this should be in the MySQL section but here goes, I basically need some sort of code which can read events from a database, display them on a webpage, and the ability to edit and add new events. Please do not suggest any sort of calendar as …

Member Avatar for Awilson089
0
176
Member Avatar for python-noob

I have a problem that I have been working on. I felt like I was getting close just to find out with wasn't the 100% correct way of doing it. What I need to do is take a list of names from a file in the format last, first, middle. …

Member Avatar for ihatehippies
0
241
Member Avatar for TMDG

I am wondering how to read a file in c... this requires some more background information before you give me something useless What I have so far: [CODE]#include <stdio.h> int main(void) { FILE *fpr,*fpw; char C; int I; fpr = fopen("cwM.dat","r"); fpw = fopen("echocwM.dat","w"); while (C != EOF) { fscanf(fpr,"%c",&C); …

Member Avatar for WaltP
0
265
Member Avatar for softDeveloper

Hi All! I'm trying to read ms word documents stored in my dataBase in a BLOB column. However, concerning the encodings there are issues with characters. My web application can read the ms word documents the to an iframe with POIFSFileSystem without problems. [CODE] File docFile = null; [COLOR="Green"]WordExtractor[/COLOR] docExtractor …

0
81
Member Avatar for DavidKroukamp

I have seen many people struggling with Reading files and writing files in java, also a great problem is how to edit a file too. So in this code snippet I have put all these problems into one small program in hopes to help others. So this code snippet will …

Member Avatar for DavidKroukamp
5
22K
Member Avatar for shotokanpoloto

Hi...I want to read from a file and put each line in...the given file is like that : q0,q1,q2; a,b; q0; 7; q0,a,q0; q0,b,q1; . . . . (as you see it's the information of a nfa) Each line ends with ";" and each element of array is separated with …

Member Avatar for shotokanpoloto
0
218
Member Avatar for glut

Hey, I'd like to read a file from the server, by any means necessary. As long as I can use something like JavaScript, like it has to be client sided. No server sided scripting language. If there is no way to read a file from the server, is there a …

Member Avatar for glut
0
114
Member Avatar for sathya88

am want to develop a file transfer program in vc++.. normal text file it is possible.. but is it can read for multimedia file.... like java here byte read is possible...

Member Avatar for sathya88
0
143
Member Avatar for a1a4a

Greetings I am on a project where the application read a text and execute commands in the text... i am having problems in the part of finding the command from the text. So let's say i have a file with the following text : [QUOTE] message:Hello this is a message …

Member Avatar for a1a4a
0
346
Member Avatar for matharoo

Hi I am trying to write a script in Bash Shell. I have the file test.txt and has the following data: AIR DR [ 4] Pressure :50 AIR UR [ 3] Pressure :70 WATER DR [ 3] Pressure :90 [ 3] PIS: 402ps WATER UR [ 3] Pressure :110 [ …

Member Avatar for L7Sqr
0
326
Member Avatar for JavaPrograms

My task is to: Pick 10 of my favourite NBA or NHL players from 2 top teams and display the player name, team name, points, rebounds, and assists for each of them. I then have to store this information as a table in a .txt file (This part is completed). …

Member Avatar for David Kroukamp
0
415
Member Avatar for akingcool

I am trying to design a file reader with some sort of GUI so I decided to use JOptionPane. I am a complete noob trying to learn java. So far, I have managed to make my program produce a pop up for the file location, and also an error message …

Member Avatar for mKorbel
0
3K
Member Avatar for thines01

Here are two examples of opening read streams to files on an FTP server. One example uses the FtpWebRequest method. One example uses the WebClient method. Here is a method of testing those functions: [CODE] using System; using System.Diagnostics; using System.IO; using System.Net; namespace UseFtpStreamExample { using FtpReadStreams; class Program …

0
401
Member Avatar for gnik2009

I need to read a file that contains this: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 …

Member Avatar for gnik2009
0
236
Member Avatar for suiram

I have a text file which has data in it in the following format: string string char int double string Each field is separated by a tab character. The last string of every line contains multiple words. The file can have up to 50 lines (I am guessing if I …

Member Avatar for Clinton Portis
0
251
Member Avatar for Prisms

Whats up everyone I have a question, but first of all I know how to read a file, write to it and all that good stuff I was wondering how do I manipulate data from one. I want to take this .txt file and compute the gpa by taking the …

Member Avatar for Prisms
0
181
Member Avatar for StefanieZY

Hi everyone, I need to use python to read some data in my csv file, but the file I have contains 15 rows of introduction in front. all the data I need is from the row 16. I am able to read the data as the way I want it …

Member Avatar for TrustyTony
0
347
Member Avatar for matharoo

I am trying to store the numbers of a text file into a 2D array.. Here's the text file: 1 2 3 2 3 4 4 5 6 But i get the error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 at BankerAlg.main(BankerAlg.java:30) Process completed. Here's the code i made: [CODE] import …

Member Avatar for matharoo
0
2K
Member Avatar for mbirum

Hello, I have a project in which I have to write a client program for the finger protocol. It's a very, very basic program which covers the basic socket() connect() connectToHost() and read()/write() functions. I am having a small problem which I cannot figure out. My program compiles perfectly, no …

Member Avatar for mbirum
0
207
Member Avatar for akingcool

Hi, I am trying to make an array to read txt files. I have hard coded it to 3 for the array but I would prefer for it to be able to read the txt files to see how big the array should be. I have implemented some code to …

Member Avatar for akingcool
0
186
Member Avatar for hari.paartha

[COLOR="Green"]Hi all Pls tell me how i can read a data from EXCEL file and copy it to a text file using c++ program.I dont want to do it as manually .(Its for an extended application for software).I want to read the data from perticular cell to the end of …

Member Avatar for Narue
0
484
Member Avatar for maynardjk13

Greetings! I've been working on this program for the past couple of hours now, and I cant seem to get it right. I'm supposed to write a program that reads in integers from a text file, and then find the sum of the integers. The problem I'm having is with …

Member Avatar for maynardjk13
0
230
Member Avatar for brettclavier

I'm working on a tool that can copy the registry files from a designated drive or image onto a local machine. After doing that, how would I go about reading from those registry keys? I've seen other people use RegOpenKeyEx but that was on their computer and not an external …

Member Avatar for MonsieurPointer
0
168
Member Avatar for infantheartlyje

Hi i could not specific Record from my binary file. This is the method to list out all records. [code] int student :: showall(fstream &fp) { student rec; fp.seekg(0,ios::beg); int i=0; cout<<"Position\tRoll No\t\tName\tBalance"<<endl; while(fp.read((char*)&rec,sizeof rec)) { cout<<i*sizeof rec<<"\t"; rec.show(); i++; } } [/code] While running this i got the below …

0
102

The End.