7,373 Topics
![]() | |
hi..who knows how to append the list box to the exist text file? [CODE] FileStream fs2 = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt", FileMode.Append, FileAccess.Write,FileShare.Write);//create text file StreamWriter sw2 = new StreamWriter(fs2, Encoding.Default); string writetext = ListItemCom2.SelectedItems.ToString(); sw2 = File.AppendText(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt"); // write to the text file sw2.Flush(); sw2.Close(); [/CODE] this is my coding.But,it contain … | |
this code is meant to input words from file, and output to file the amount of letters in them and how many words there are [CODE]#include<iostream> #include<iomanip> #include<fstream> #include<cmath> #include<conio.h> #define in_file "data.txt"//input file name #define out_file "result.txt"//output file name using namespace std; void inputwords(int&, int&); void outputwords(int, int); ifstream … | |
My site is broken into three different categories (which are stored on 3 separate tables) and I am looking at creating a functionality to let a user upload photos. Ideally, I would like the following to happen: [LIST=1][*]A user is viewing a single retail store on the site, for example … | |
hi, I now face some problems in saving the content of the listBox to the exist text file. i need to append the content to the text file and canot overwrite the content in the text file.Who can help me..? [CODE] FileStream fs2 = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt", FileMode.Append, FileAccess.Write, FileShare.ReadWrite);//create text … | |
Hey guys, I got this code to upload an FTP file which works great, but what do I do when I wnat to upload the contents of an entire folder? I mean, I could make a for-each but that would mean disconnecting and reconnecting to the FTP server alot of … | |
I am working on a project and coding in Python 3.1 where I need to find a string in a file. I have already considered reading the file to a string and then using rfind() on it, but that does not seem to be efficient, seeing as how I expect … | |
Hi, I am making a script that takes the file contents of another chosen file on the same server, everything in the file is pulled into a textarea including the PHP in the file. I want to know how to then save all this data to a PHP file (temporary) … ![]() | |
I want to ask how to combine two text file and read in the rich text box..? [CODE] String rd = ""; private void CLICK2_Click(object sender, EventArgs e) { string file1 = @"C:\Users\Fish\Desktop\fyp-coding\sample1.txt"; string file2 = @"C:\Users\Fish\Desktop\fyp-coding\sample2.txt"; FileStream fs1 = null; FileStream fs2 = null; try { fs1 = File.Open(file1, … | |
I have an interface built in javafx but it currently does nothing it just looks nice. How do you download files from the web in javafx or java? How do you create files on the users system in java or javafx? How do you place downloaded files in the created … | |
Hello All, I am working with a program the reads data from a file and plots it to a graph in real time. My stream is coming from a microcontroller output and I am building an interface to display the data. I am using stream reader in my routine, but … | |
![]() | I have been looking for an answer for the last few hours on google with no success. I am trying to create a program that will determine what file to open from user input. For example: names of the text files are xaa through xzz. The text files contain integers … ![]() |
Hi Guys, I have an image upload script on my website however i got tired of uploading them one at a time so i decided to add multiple upload fields. Now when i submit the form i get the "Incorrect format..." error message appear from my code below. When i … | |
Hi, At the moment i'm trying to locate xml files to use their content. I would like to be able find all files that have a particular pattern in their name (for example student_James.xml; student_Chris.xml so "student" would be the pattern). I want to be able to do this using … | |
hi, im doing a project on jsp..which is a file uploading program i have a file chooser and i want the file choosed by the user to be stored on my server. how should i do that.. please help me my code is given below--addphoto.jsp [CODE=JSP] <html> <head> <meta http-equiv="Content-Type" … | |
" After I have compiled my program I have an executable file. To execute it from the command prompt: test.exe <test.in >test.out Where test.exe is the name of my compiled executable, test.in is a text file for input, test.out is a text file that your resut will be output to. … | |
I'm using an html form to submit data directly into a mysql database using a php script. For some reason the pictures will not be uploaded fully into the database. This is when I don't use a multipart/form-data tag. When that occurs the pictures partially upload but when I put … ![]() | |
Hi, I have a small problem with a DLL. The code for the solution is split into several projects which are then compiled and deployed to a web server. When the project is within Visual Studio I used a Linked file to get the contents of an app.Config file (XML) … | |
![]() | Hey, so I'm working on the game set-cubed in Scheme (for those who know the game). Currently, i have a csv file of all the possible dice with dice faces. I'm trying to read this into scheme, and managed to do that with a csvreadermaker. Currently, i can get it … |
Hi all; I am having a problem when submitting this form. The path of the file to be uploaded gets duplicated and the file does not get uploaded . Could you please help me?? Here is the code: [ICODE] <%@ Page Language="VB" MasterPageFile="~/_templates/MasterPage-ContentNormal.master" autoeventwireup="false" inherits="SierraClub.PublicSite.BasePage" title="San Francisco Internships - Careers … | |
Hello, i have create a form for uploading file and it's works, but i dunno how to make people can download it.i hope someone can helps me.. | |
Hi, I am very new to C++. In my code i am using readline to get the user input which is a command and that input will be processed accordingly. When user enters a command named "setflag", i should set a flag to TRUE in all the active sessions of … | |
How should i come about accessing eclipse file folder on another computer using the elicpse software too?? I mean accessing the entire file as a whole with a working solution and not accessing .xml or .java individually. Or is it impossible to access the file as a whole but i … | |
hello friends, I have generated a csv file with 27 columns. third column is of time and i want to sort all the data according to this column in ascending order. so can you please tell me how to do this.? i have no clue where i should start. i … | |
I have a class which stores my camera settings [CODE] public class SaveData { public CameraFreeLookSettings CameraSettings; /// <summary> /// Parameterless constructor for XML Serialization/Deserialization /// </summary> private SaveData() { } public SaveData(CameraFreeLookSettings cameraSettings) { CameraSettings = cameraSettings; } } [/CODE] I'm trying to save those settings using a SaveFileDialog … | |
Ok, Hi I need help.I making a project and need to find the end of file line of a file.I researched [CODE]file_get_contents[/CODE] of a certain file and it worked but it did not register anything. And then found [CODE]feof[/CODE] and used this: [CODE]<?php while (!feof($f)){} ?>[/CODE] And it registers the … | |
below is the code i found from some nice tutorial it works great but the function post to wall promt user to either publish or skip, on some other php file this trigers it i think <a href="#" onclick="publishStream(); return false;">Click Here To Show A DEMO Stream Publish Box</a> and … | |
Hi, i'm trying to write a batch file that that copy the 10 first lines from a text file (myfile.txt) and paste it to an existing file(target.txt) at the top of the text. So i tried this after searching in google but it doesn't work as i want. [CODE]@echo off … | |
Hi, I am getting an error message when using base classes. The error message is x: undeclared identifier y: undeclared identifier z: undeclared identifier The particle class derives from the fourvector class which derives from the threevector class, as follows. [CODE]#ifndef THREEVECTOR_H // Prevents the class being re-defined #define THREEVECTOR_H … | |
In this program everything work except the change back, the quarters, dimes, nickels, and pennies wont work, everytihng else works, for my input i used 65.67, which with hst came out to 75.52, the amount tendered was 100. I just need help with getting the quarters, dimes, nickels, and pennies … | |
My first Java post, as I am finally trying to learn a little Java, and am doing it the hard way, which is by trying to read other people's code, using Google, and the ww3 web site. It's not that difficult to learn what individual commands and all do, but … | |
I am working on a homework assignment where I have to read some annual income numbers from a text file, then determine how much tax is owed assuming the tax bracket is 30%. I am having a couple issues with my code. First: when the message dialog trys to print … | |
Hello, My computer has been restarting without a user prompt for some reason. A Comodo notification comes up saying that there is some registry error with a pending file rename operation. Below is the Hijackthis logfile. Logfile of Trend Micro HijackThis v2.0.4 Scan saved at 4:03:57 PM, on 3/14/2011 Platform: … | |
Please Help how can i delete a lines from may .txt file someone help me :D my .txt file had a data please so body help me :D:-/ | |
Hi, I am uploading a file(text,doc) in php.its working fine. I want to send this uploaded file as attached file to admin.my mail function is working fine.but i don,t know how to attach that uploaded file. need help. Thanks | |
I am writing an importer for a custom export script to load mesh information for models. I tested my algo with small files, 20-30 kb of information with success, but when I try something bigger like 400kb(not that big mind you), the file fails to open. This is the significant … | |
Is it possible to write a method and declare something like [CODE]Node currentNode;[/CODE] to "scan" through each nodes in the list, and saving to file. I guess I can use [CODE]import java.io.*;[/CODE] to declare the necessary file stream variables. Would really appreciate some ideas and tips on how to approach … | |
I wanna write a script which will count the number of occurrence of a given string from a text file. Suppose a text file content many phone numbers and many of them occurs several times on that text file.I am gonna provide a particular number and i want that script … | |
Hi all I would just like to know how can I copy a file to a specified folder and the user chooses the file say via a openfiledialog. Now I cant specify a file because the folder is empty so I cant make use of the File.Copy method but there … | |
hi, please help.. I need php code to upload file from one FTP to another FTP.. thanks/regards vijay | |
Compiling the following the class in the main program returns error C2784. What could be causing the problem? [CODE]#include <iostream> // Include input/output stream #include <cmath> class threevector { public: double xcoord, ycoord, zcoord; // Default constructor threevector() { xcoord = 0.0; ycoord = 0.0; zcoord = 0.0; } // … | |
Hello I have two files test.aspx test.aspx.cs I have some Drop Down Lists and Textboxes but if I want to use them the .cs file does not recognize there are those elements in the aspx file. For instance, in the page load event I want to get the text from … | |
I keep getting this error when I try to Debug my Internet radio player. I don't know why. I used absolutely no advanced settings. Just had the buttons programmed to make a Webbrowser control go to a URL that would play some music. I even tried to just compile and … | |
Hi, I need help with Resource files.... That i need to do is running file that i have put in the resource files (exe file) So the idea of this when i click the button the file that i have put run so it cant be happen with shell. is … | |
Can anyone tell me what's wrong with my program below? I'm creating a program that writes every character(byte) from a buffer to a FILE until the number of bytes written is equal to the size of the buffer. [CODE] char *next; int character; int byteswritten = 0; next = buf; … | |
![]() | Hi everyone. I am trying to build a script where a user of my website can download files. I have a problem. My site has two different user types, Free and Premium at the moment the only protection I have on the script is to check whether the user is … |
![]() | I want to limit uploading size of the user image. How can i do this? User should upload only jpg file and it would be less than 100kb. and is there any way i can convert that image into specific resolution? Thanks.... |
Greetings to all Forum users, Yesterday i tried to install a Haskell-module via cabal, in order to get aquainted with the installation of modules in Haskell. I had to install cabal first. My System: Windows 7 Haskell-Compiler Version: GHC 7.0.2 (Link [url]http://www.haskell.org/ghc/download[/url]) Cabal: [url]http://haskell.org/cabal/download.html[/url] I will describe the process step … | |
Hi, I'm trying to make a program that will write to a file and tell it that the next time that the program is run to not do the first part of the program. [CODE] fstream install; //this is what all of the tutorials say to do. install.open(ready.txt); //this is … | |
I think that I have captured the file name from a file on my hard drive and I think I have loaded the contents of the file into an array. The code I used is: public void openFileDialog1FileOk(object sender, System.ComponentModel.CancelEventArgs e) { string fullPathname1 = openFileDialog1.FileName; FileInfo src = new … | |
Hi, I am trying to create a simple program thats reads banking information from a text file. The text file is layout out line by line. I know that there is definitley 14 lines for each customer but the amount of accounts the customer has is dependant on the 14th … |
The End.