7,373 Topics

Member Avatar for
Member Avatar for Kath_Fish

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 …

Member Avatar for Mitja Bonca
0
179
Member Avatar for salty11

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 …

Member Avatar for WaltP
0
639
Member Avatar for jrotunda85

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 …

Member Avatar for jkon
0
170
Member Avatar for Kath_Fish

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 …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for crankyslap

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 …

Member Avatar for crankyslap
0
2K
Member Avatar for constntine

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 …

Member Avatar for snippsat
0
541
Member Avatar for BlueCharge

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) …

Member Avatar for diafol
0
389
Member Avatar for Kath_Fish

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, …

Member Avatar for agugglez
0
267
Member Avatar for DarkLightning7

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 …

Member Avatar for DarkLightning7
0
286
Member Avatar for mcodesmart

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 …

Member Avatar for Momerath
0
320
Member Avatar for Jbvo

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 …

Member Avatar for Jbvo
0
314
Member Avatar for leemp5

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 …

Member Avatar for dietdew12z
0
113
Member Avatar for ChrisHunter

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 …

Member Avatar for gusano79
0
192
Member Avatar for ajijacobm

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" …

Member Avatar for peter_budo
0
119
Member Avatar for cse.avinash

" 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. …

Member Avatar for Adak
0
1K
Member Avatar for ptara1

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 …

Member Avatar for TechySafi
0
271
Member Avatar for taylby

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) …

Member Avatar for taylby
0
231
Member Avatar for BobTheLob

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 …

Member Avatar for rotflcopter
0
215
Member Avatar for lbeddawi

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 …

0
64
Member Avatar for amie900218

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..

Member Avatar for amie900218
0
119
Member Avatar for anraevlus18

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 …

0
90
Member Avatar for imso

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 …

Member Avatar for imso
0
142
Member Avatar for rjbrjb777

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 …

Member Avatar for WaltP
0
4K
Member Avatar for DaveTran

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 …

Member Avatar for DaveTran
0
212
Member Avatar for Warl30ck

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 …

Member Avatar for NightLight
0
133
Member Avatar for serdas

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 …

0
67
Member Avatar for Neversleepin

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 …

Member Avatar for Reverend Jim
0
219
Member Avatar for highflyer8

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 …

Member Avatar for mrnutty
0
162
Member Avatar for salty11

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 …

Member Avatar for salty11
0
166
Member Avatar for m610

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 …

Member Avatar for masijade
0
380
Member Avatar for New2Java2010

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 …

Member Avatar for New2Java2010
0
207
Member Avatar for MiDude

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: …

Member Avatar for jholland1964
0
419
Member Avatar for bantex07

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:-/

Member Avatar for jonsca
-1
61
Member Avatar for jacob21

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

Member Avatar for makman99
0
124
Member Avatar for LevyDee

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 …

Member Avatar for Kanoisa
0
148
Member Avatar for hauda67

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 …

Member Avatar for jon.kiparsky
0
143
Member Avatar for debasishgang7

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 …

Member Avatar for debasishgang7
0
193
Member Avatar for Weppies

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 …

Member Avatar for Rynkadink
0
155
Member Avatar for vijiglad

hi, please help.. I need php code to upload file from one FTP to another FTP.. thanks/regards vijay

Member Avatar for petr.pavel
0
82
Member Avatar for highflyer8

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; } // …

Member Avatar for Fbody
0
536
Member Avatar for MrCapuchino

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 …

Member Avatar for MrCapuchino
0
132
Member Avatar for m16piggy

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 …

Member Avatar for Mike Askew
0
168
Member Avatar for xxxferraxxx

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 …

Member Avatar for xxxferraxxx
0
2K
Member Avatar for shinsengumi

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; …

Member Avatar for shinsengumi
0
219
Member Avatar for doctorphp

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 …

Member Avatar for chrishea
0
192
Member Avatar for kirtan_thakkar

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....

Member Avatar for Gewalop
0
170
Member Avatar for keltik

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 …

Member Avatar for Rashakil Fol
0
181
Member Avatar for jackmaverick1

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 …

Member Avatar for mike_2000_17
0
117
Member Avatar for NOVICE3

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 …

Member Avatar for Momerath
0
343
Member Avatar for gunnerone

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 …

Member Avatar for ddanbe
0
302

The End.