6,015 Topics

Member Avatar for
Member Avatar for ArrogantLegend

So I have writing to a file and reading from a file. Now I need to be able to find specific data that was previously entered and saved to that certain file. Here is the code I have so far. [CODE] { ofstream myFile ("words.txt"); if (myFile.is_open()) { myFile << …

Member Avatar for ArrogantLegend
0
78
Member Avatar for hawisme000

hi every1, another prob cnt solve even after googling how can i load a notepad file or txt file on VB, what i mean is loading the notepad.exe with the file inside example i click the cmdLoad then it will open the file (on notepad) the file i want to …

Member Avatar for hawisme000
0
244
Member Avatar for jeffige

I have been following a C tutorial and using DevC++. When I write this code: [CODE]#include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }[/CODE] and try to compile and run, I get this file popping up... [*] cstddef // Copyright (C) 1997, 1998, …

Member Avatar for jeffige
0
345
Member Avatar for Jennifer84

I am trying to read lines from a .txt file and put them to a vector like this but when I run the program, the computer get stuck. The file is only about 50 lines. I wonder what could be wrong with this code. [code] ifstream File("C:\\Gli\\temp\\File1.txt"); std::vector<string> For; std::string …

Member Avatar for Jennifer84
0
99
Member Avatar for midimatt

Hi Again, Well i'm bored and i've decided to do some coding just for practice and i've decided to work on a text based RPG, its only going to be basic due to my own knowledge but i think its doable. unfortunatly i've come accros a problem already and i've …

Member Avatar for WaltP
-1
376
Member Avatar for remcob

Hello, When I have a created a socket (sd) connection and opened a file (fd). How can I send over a file? Create a buffer (char buf[BLOCK] ????)and send over block by block or so? And if so, what is most efficient block size? Cheers!

Member Avatar for remcob
0
93
Member Avatar for Serakus

I've read through some of the posts concerning this problem on this site and various others, i have the same problem and have done everything up to the HijackThis to heres my log for it. Help would be greatly appreciated :) Logfile of Trend Micro HijackThis v2.0.2 Scan saved at …

Member Avatar for MoralTerror
0
661
Member Avatar for hyperzero4

Hello. I'm very new to Compuer Science, and I'm taking a class for fun but I recieved a really hard assignment for homework that I was hoping to get a little bit of help on here and there. It's only compter science for beginners, so I hope it isn't that …

Member Avatar for lAmoebal
0
113
Member Avatar for sjgriffiths

hello I am trying to open a file which exists on my local PC using fopen the file is located in c:\B2B Data\files and is called file.txt When i put the above into a variable called filename, i cannot open it ie char filename[27]="c:\B2B Data\files\file.txt"; i then issue an fp …

Member Avatar for Ancient Dragon
0
89
Member Avatar for aparnesh

I am trying to upload a file to IIS Webserver using MS Posting Acceptor. The URL from where the File is being Uploaded is h ttp://localhost/ccs/RakeUpload.asp After the File has been uploaded, it should be processed by another page 'RakeProcess.asp' After the File is uploaded, the URL is changing to …

0
196
Member Avatar for batcater98

I having troubles with the different seperators in this one and just picking out the lines I want keyed from the .dat filename. I basically have an autogenerated flat file that is an export of a directory structure. I want to parse through the flat file and pull values from …

Member Avatar for tuxboy
0
153
Member Avatar for EnderX

If this is in the wrong place, I apologize. I use ShellExecute only in Delphi, but I am aware that it may not be properly considered part of the language. I have a program that is supposed to generate a .csv file for an output report. However, my boss wants …

Member Avatar for Aborad
0
303
Member Avatar for Shanomacadaemia

Hi, I'm new to assembler and I really need to make this work as it's crucial to my success in this course at college. Normally I wouldn't ask for help, but because time is such a factor now and due to my limited understanding of the language, I feel I …

Member Avatar for Shanomacadaemia
0
81
Member Avatar for deactivated

Hey everyone Maybe someone can help me with this. We are supposed to create a program that will read a .dat file and then output a new file containing the total number of rows in the data file, the sum of integers and the number of occurrences of the number …

Member Avatar for plgriffith
0
88
Member Avatar for Run.[it]

In class weve been shown how to read from a binary file and read from a text file but Im unsure how to write text to a binary file? Heres my attempt so far, Can you help? [CODE] #include <iostream> #include <stdio.h> using namespace std; int main() { FILE *namefile …

Member Avatar for Run.[it]
0
207
Member Avatar for cs_tx_usa

Hi all, My program reads a binary file (data type is single) and writes that binary file but the file size of the outputted binary file is exactly 4 times larger than the inputted binary file. I just don't know why. I would understantd if the binary file that the …

0
69
Member Avatar for alexgv14

I have a .txt log file and must of it is crap. But there are parts that display when a user logs in, and at what time the logged in. Below is a portion of the log file. For example, "user1" is a user logging in and "user2" is another …

Member Avatar for jrcagle
0
119
Member Avatar for behnaz

when we use this file: #include<graphics.h> #include<stdio.h> #include<conio.h>

Member Avatar for Ancient Dragon
0
106
Member Avatar for ducu25

Hi I don't know if this is the best place to post my question, but here is what I have and what I need to do: - I have 100 questions. Every question is in a cell (from B1 to B100). In cells A1..A100 I can say "yes" or "no" …

Member Avatar for vijeshally
0
145
Member Avatar for rickykoh1983

Hi. I have a program that allows users to enter their information. After they have entered their information and clicked on submit, the program will create another exe file so that when the user opens the exe file, they will be able to see their information. How can I create …

Member Avatar for RamPrasad710
0
234
Member Avatar for Lioshenka

Hi there!!! I am back with more problems, now in Java :) What I am trying to do is to make an application to read and output a random line from a text file, but everything I know how to do is to output the whole lot. How can I …

Member Avatar for ~s.o.s~
0
3K
Member Avatar for shane'r69

I am posting a log file from HJT and was wondering if someone could take a look at it for me. I would like to get rid of the etrust pestpatrol program but it won't let me do this with uninstall. I also would just like to make sure I …

Member Avatar for K9servant
0
155
Member Avatar for carobee

how to untar a file with tar.gz extension in php script. i have written a php script for uploading a tar.gz file amongst many files. i have to untar this file. how will the command be like? till now what i have done is - consider for uploading i have …

Member Avatar for carobee
0
1K
Member Avatar for Ankita B

Hi,I wish to make a configuration file for db connection parameters. I read about properties file.I have made a properties file that contains the following info--- String jdbcDriver="oracle.jdbc.driver.OracleDriver"; String connectionURLThin="jdbc:oracle:thin:@ hostname:AIPUAT1"; String DbUserId="abc"; String DbUserpassword="abc"; and saved it as DbConnection.properties. i have also made a java file that uses these …

Member Avatar for Ankita B
0
141
Member Avatar for dexter1984

[CODE= cpp] #include <iostream> #include <ctime> #include <cstdlib> #include <iomanip> #include <fstream> using namespace std; const int MAX = 51; const int setArray = 5; float initialArray[MAX][setArray]; void createRationalNo (int, int); float RationalInfo (float[][setArray], int); void printArray (float[][setArray], int); int main() { cout << "No\tP\tQ\tQuo\tRem\tValue\n\n"; srand(time(NULL)); int setPQ = 2; …

Member Avatar for dougy83
0
115
Member Avatar for bushman_222

Hi all, I have a file that I want to transfer. I read it from a database and save it to a file, then I open if from the file and put it into a an array I then open it again this time as binary and send the packets. …

0
58
Member Avatar for zclevenger

I have just started using python and am stuck on a particular project. I have been stuck staring at my computer not knowing what to do. I will post details below. What I am trying to do is use a CSV file named country.csv in which information about countries is …

Member Avatar for jrcagle
0
173
Member Avatar for lkk2116

I am new to python. Infact started yesterday and feeling out of place. I need to write a program which would transfer files under one folder structure (there are sub folders) to a single folder. I was going through COPYTREE in shutil. But some how I am not able to …

Member Avatar for jrcagle
0
101
Member Avatar for cosmos22

Using the code below, I tried to implement a second line of code to delete another file in the same folder. I got an error message as a result. I'm using messenger as an example: I tried to replecate this line: const char * pFileToDelete = "h:\\MSN Messenger\\myfile.txt"; into something …

Member Avatar for cosmos22
0
96
Member Avatar for Yuexuan

How to import excel file data to mysql database here is my uploading file coding how to use my uploaded excel file to get it data and store it at database Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim filepath As String = Server.MapPath("Files/") Dim …

Member Avatar for Yuexuan
0
380
Member Avatar for lordsvae

Allright, this is the deal, im trying to use Install Sheild to install a program I wrote in java. But I cannot make shortcuts on the desktop and/or START menu linking to the .jar file, it has to be a .exe file, so I need to make a simple .exe …

Member Avatar for vijayan121
0
96
Member Avatar for hyperzero4

Hello, I'm very, very new to C++ and I'm taking computer science course right now for fun. I really want to learn C++ but I'm having a lot of trouble with this new homework assignment and I'm hoping I just take it one step at a time so I completely …

Member Avatar for John A
0
4K
Member Avatar for Jennifer84

I have managed to create a file (Sample.txt). So what I need now is to put the contents from array (ReadLines[]) to this file, line by line and the file name should be what is written in textBox3. [code] array<System::String^>^ ReadLines = gcnew array<System::String^> ( textBox2->Lines->Length ); ReadLines = textBox2->Lines; …

Member Avatar for Jennifer84
0
111
Member Avatar for kursist

Hi, I am new to bash scripting. I have some questions here, Can anybody help? I have a text file which has the following format. UserNam User full name road and house nr. post nr, city phone, mobil Department, job The first thing should be to open file and find …

Member Avatar for kursist
0
109
Member Avatar for VersEtreOuNe

[COLOR="Red"][B]Circle.h[/B][/COLOR] [code=c++] #ifndef CIRCLE_H #define CIRCLE_H #include <iostream> #include <fstream> using namespace std; class Circle { friend ostream& operator <<(ostream& output, const Circle& aCircle); friend istream& operator >>(istream& input, Circle& aCircle); public: Circle(); Circle(double radius, int id); Circle(const Circle& aCircle); void SetCircleRadius(double radius) { _circleRadius = radius; } void SetCircleId(int …

Member Avatar for vmanes
0
103
Member Avatar for jaepi

Hello there! Is there any way you can create a file with no extension with a size of 700mb? I tried using the [I]edit[/I] tool in the command line but it can't create that size. Thanks!

Member Avatar for DimaYasny
0
57
Member Avatar for VersEtreOuNe

What I need to do i something like this: [B]ClientData.h[/B] [code=c++] #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string> using std::string; class ClientData { public: ClientData(int = 0, string = "", string = "", double = 0.0); void SetAccountNumber(int); int GetAccountNumber() const; void SetLastName(string); string GetLastName() const; void SetFirstName (string); string GetFirstName() …

Member Avatar for WaltP
0
142
Member Avatar for hallinan

hi I'm doing a banking project using binary files I need to write into a binary file and read and calculate the amounts within it. I open a file by asking the user for their name and searching and a file. I am having trouble reading the integers into a …

Member Avatar for zhelih
0
141
Member Avatar for dami06

Hi, I'm trying to upload a some files to a webpage im trying to crete but its giving me an error once i click the upload button it gives me this type of error [B]Uploading information to the system from a file Student data is being uploaded. DATABASE ERRORExecuting SQL …

Member Avatar for dami06
0
102
Member Avatar for civic

hello! so in XP there was this option of File Types when you went to a folder>tools>options...>file types and from there you could change a particular file to become a chosen icon ie. FLV files being a custom icon. just wondering if anyone knows where "File Types" is now because …

Member Avatar for Laser
0
110
Member Avatar for rockmania

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { public static void main (String [] args) { JFrame frame = new CalculatorFrame (); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.show (); } } class CalculatorFrame extends JFrame { JTextField jtf; JLabel jlb; JTextField jtf1; JLabel jlb1; JTextField jtf2; JLabel jlb2; JButton jbt; JButton …

Member Avatar for jwenting
0
179
Member Avatar for jliu66

Hi, my friends, I have a question to ask you. I am dealing with thousands of csv files in one directory. Some of csv files are empty with file size 0. How can I skip those empty files when I open csv files otherwise it causes execution error? I have …

Member Avatar for jliu66
0
88
Member Avatar for arkansan

Here is my Hijack log. I ran it at 12:53 or :54...This file won't go away. It's a temp file. ~DF8241.tmp another one is ~DFE2H.tmp Here is the log............................................................... Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 12:47:27 PM, on 2/1/2008 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet …

Member Avatar for MoralTerror
0
257
Member Avatar for Shveetis

Hello everyone.. I am trying to retrieve a URL of applications from a text file... My text file contains 3 URLS for 3 applications say for example : C:/ABC.java C:/JVM.java C:/Tomcat.java I have tried implementing a code for the same but when I try to copy the URL into a …

Member Avatar for Phaelax
0
109
Member Avatar for P90K

hi i want to close an excel file. i have already this code [CODE]Windows("datamppm.xls").Activate ActiveWorkbook.Close savechanges:=True Application.Quit End [/CODE] but when ik click te button to close the excel file. excel gives an "error" that there are item on the clipboard. en then i have to chose yes or no …

Member Avatar for P90K
0
156
Member Avatar for mjoshi

Hi, I have written a program that copies one file to another while making format changes to some lines The relevant part of the code is the following" [code] while(fgets (cbuff, 80, f1)!= NULL) { if ( (isdigit(cbuff[5])) && (isdigit(cbuff[11])) && (isdigit(cbuff[17])) ) { strncpy (c1, cbuff+1, 5); c1[5] = …

Member Avatar for Ancient Dragon
0
100
Member Avatar for rajeevkshr

Hi all, How Can i Download a Upload Word Document in PHP.Anybody Can help me For me Doing This.

Member Avatar for nav33n
0
71
Member Avatar for poojagupta

My question is to calculate the mean of a comma separated dataset stored in a file. The program will be run on a system with no floating point library. Obey the following rules: 1.Maximum 100 values in dataset 2.Each data entry in the dataset is a byte (0 - 255) …

Member Avatar for Narue
0
114
Member Avatar for Ankita B

hi, im making login page using jsp.user names and password entered are matched wit the db. have placed db connection code in a java classlogin.java...The directory path is webapps->myfolder->all jsp and html files webapps->myfolder->WEB-INF->classes->test->login.java I entered the url in browser also perfectly fine..[url]http://localhost:8085/myfolder/mainpage.jsp[/url] i set the PATH and CLASSPATH variables …

Member Avatar for ~s.o.s~
0
180
Member Avatar for Dio1080

I been trying to import the list in the text file to the word doc, the thing is, is that I can only get the last line on the text imported while I'm missing the rest of the top. Can somebody help please? [code] import java.util.Scanner; import java.io.*; import java.util.*; …

Member Avatar for iamthwee
0
162

The End.