6,015 Topics
![]() | |
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 << … | |
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 … | |
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, … | |
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 … | |
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 … | |
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! | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
when we use this file: #include<graphics.h> #include<stdio.h> #include<conio.h> | |
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" … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
[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; … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
[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 … | |
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! | |
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() … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] = … | |
Hi all, How Can i Download a Upload Word Document in PHP.Anybody Can help me For me Doing This. | |
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) … | |
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 … | |
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.*; … ![]() |
The End.