7,373 Topics

Member Avatar for
Member Avatar for julseypart

hi all. ok i have been able to create an error message - if the user tries to delete a row which has not been selected first; but it still deletes from the gridview... [CODE]void DeleteRowButton_Click(Object sender, EventArgs e) { LinkButton btn = sender as LinkButton; GridViewRow row = btn.NamingContainer …

Member Avatar for greeny_1984
0
115
Member Avatar for mcham

I'm looking for a way, just about any way really, to set the file version of a file. Clearly, programatically would be best, but at this point any way would be acceptable. What I have more specifically, is a file generated dynamically using CodeDOM. The version of this file is …

Member Avatar for miculnegru
0
91
Member Avatar for Lilal

Heya, Just trying to get a little help on some excercises I need to do, Done 14/15 fine, but stuck on 15th and not sure quite whats wrong. Need to do a systemcall from C program to copy a file, using stat, open, read write and close. So far I've …

Member Avatar for Lilal
0
99
Member Avatar for nosnibor

[CODE=cplusplus] bool BODYTYPE::Seek(BODYTYPE * body) { string line; string key(body->style); size_t found = ' '; fstream file("..\\Data\\BODYTYPE.txt",ios::in); if (!file.is_open()) { cout << "Unable to open file \n"; return false; } file.clear(); file.seekg(0); for(;getline(file,line);) { if((found = line.find(key,0)) == 0 ) { file >> body->style >> body->doorCount; return true; } } …

Member Avatar for nosnibor
0
87
Member Avatar for baltimoreharps

Ok, I'm trying to Create A New File that doesn't exist yet. Basically, I want the user to enter the name of the file and then want VB to create and save the file (currently it will be blank until the user goes back in and reopens it and adds …

Member Avatar for baltimoreharps
0
108
Member Avatar for freddan007

Hello, I've started learning how to make simple GUI programs in cpp using theforgers tutorial. However I was going to add XP style to my program and I found a page that showed me exacly how to do it for VC++ 6. The problem when I had added the lines …

Member Avatar for freddan007
0
763
Member Avatar for rasingh24

Hi , i have a project in having two classes TreeDisplay(Form.cs) and MytreeNode class in same namespace.:) TreeDisplay class contains all the GUI related stuff like Browse button textbox , label,progress bar and TReeView. I want the user to select a XML file through browse button which will be displayed …

Member Avatar for rasingh24
0
161
Member Avatar for jascase901

Hello i Just learned about the Exec statement, so i trying to make a flash card program that saves your cards. The way that i wanna keep the cards persistent is to save a dictionary to a text file and then just use the exec statement to call forth the …

Member Avatar for jascase901
0
1K
Member Avatar for rasingh24

I have this Xml file that i browse from my HDD into my C# program. Now the nodes of this Xml doc get displayed in a tree view in my winform.All my logic is in the winform right now. There are three methods 1. To load the Xml doc in …

Member Avatar for dickersonka
0
99
Member Avatar for vinaychalluru

Hi friends..,i have a problem regarding the regular expressions.My problem is to input a file name and a regular expression to a program and program have to read all the lines of the file and produce the substrings (if present) produced by the Regular expression...I know to input a file …

Member Avatar for Rashakil Fol
0
95
Member Avatar for dwlamb_001

I have written an application to do the following [list] [*]upload a txt file to the server [*]move it from the temporary directory to a more permanent one [*]parse the test file line by line and do some processes [*]create and write the result to a new text file [/list] …

Member Avatar for dwlamb_001
0
108
Member Avatar for breatheasier

Hi I'm wondering how I would go about creating a program that will input data from about 1,000 files containing data such as this: [code] 2.825 1.00697992588 2.875 0.952989176901 2.925 0.91428970229 2.975 0.890110513425 3.025 0.879731596138 3.075 0.959217137445 3.125 1.07391392796 3.175 1.04874407027 3.225 0.857693793906 [/code] I'm wanting to generate an average …

Member Avatar for Gribouillis
0
153
Member Avatar for deepugtm

I want to write a program that can run a file in my hard disk.For example,a test.bmp file is there in location D:\home\test.bmp,that program should open(like double clicking on it ) that file (test.bmp) and i can view the image contained in the file.

Member Avatar for csurfer
0
138
Member Avatar for olgratefuldead

I have the following in a dat file: Obe 20 12 15 20 -1 Twitter 16 12 18 19 -1 Karah 30 15 12 3 30 -1 Cappy 12 12 13 15 14 -1 Monkey 17 16 15 14 14 -1 I am trying to write a Java program to …

Member Avatar for olgratefuldead
0
197
Member Avatar for hisoka

Hi all, I have this problem that my File Download popup window is not displayed everytime I download excel documents. My downloaded excel file automatically opens in MS Excel. My system are both Xp SP2 and Vista, how can I get rid this error. Thanks in advance.

0
72
Member Avatar for JimD C++ Newb

Good afternoon all! I am writing an address book for a class that I have, and am stuck on this last part. Any help would be greatly appreciated! When the user selects the "Edit existing record" option, I can't figure out how to make the file overwrite the previous record. …

Member Avatar for eggi
0
390
Member Avatar for trelek2

Although I'm a novice in Java I am to make a pool simulator in java with the ability to handle any arbitrary number of balls (i have created a Ball object, balls will be stored in the Ball array called balls). All the parameters are to be read in from …

Member Avatar for BestJewSinceJC
0
245
Member Avatar for colmcy1

Hey all, I am trying to first write an array to a text text file, delete the array, then later in the program I need to use the array again so I need to open the text file and read the array and call it the same name as before. …

Member Avatar for 10Pints
0
272
Member Avatar for javascript_help

Problem: Upload all the file in a folder to Server using JavaScript / web service I was trying to upload all the files from the specified folder from the client machine to the server. At the client side, I used JavaScript to read the entire file from client machine While …

0
73
Member Avatar for chris5126

Hi guys, Im trying to create a console app that will read from a text file and import the file into a sql database. I have completed the following already: Read from a text file and put out to console Read from sql database and put out to console Now …

Member Avatar for LizR
0
205
Member Avatar for chris5126

Hi guys, I have a program im writing that needs to look for a file in a certain directory then when it find the file add the contents to a database. I have the program working which does this however the filename changes depending on when it was created. The …

Member Avatar for JerryShaw
0
194
Member Avatar for txman

I'm teaching myself c++, and after searching around on the forums, I couldn't find an answer that helped me with this specific problem. The idea is to collect the first name, last name, and SSN of a customer, and create a file using the first three letters of the first …

Member Avatar for vmanes
0
95
Member Avatar for okarvian

I've encrypted a file from my local machine, but now I'm looking to make it [B]exe [/B]file. User just [B]double click [/B]on it and a form will be displayed to ask for the [B]password [/B]and [B]decrypt [/B]the file. I don't know how to embed a form with encrypted file. Can …

Member Avatar for JerryShaw
0
120
Member Avatar for ellimist14

ok this is a really basic question but I just can't seem to wrap my head around it. The basic syntax of how to open a file and check it and whatnot makes sense to me. But how the compiler reads from the file doesn't. For example if I have …

Member Avatar for siddhant3s
0
126
Member Avatar for loveforfire33

Hi guys, im yet again having a problem with a task! im struggling to get my head around stream reader. ive managed to grasp the basics how to read and write to .txt files when entrys are a new line in the .txt file ( i.e the .txt file layout …

Member Avatar for sknake
0
66
Member Avatar for jobi116

hi.. I have encrypted a file in C# using [URL="http://www.codeproject.com/KB/security/DotNetCrypto.aspx"]this[/URL] code .. i will upload the encrypted file to my server.. Now i want to write an Equivalent PHP encrip/decript to use the file.. Can i use mcrypt_cbc() to do the job or is there anything special i need to …

Member Avatar for cwarn23
0
60
Member Avatar for petelemm

Im a novice here so if in wrong place forgive me. can I get software that will let me wipe files clean and not just release them for use but leave info there? FWIW am using a dell with XP pro..

Member Avatar for petelemm
0
87
Member Avatar for julseypart

hi, i have set a condition on the upload function [code]if (FileUploadControl1.PostedFile == null) { lblResult.Text = "Please select a file first"; } else { //upload a file }[/code] but if i press upload button when no file is selected it still uploads a blank file regardless of the "if' …

Member Avatar for julseypart
0
132
Member Avatar for jhonny_86

Hey everyone! I have a problem when I save using FileOutputStream, ObjectOutputStream... Well, there is no problem saving a file in my java application to specified folder e.g. "C:/folder/" (that is made with JFileChooser) but the problem is that I want to use MY self made icon (that has, lets …

Member Avatar for JamesCherrill
0
566
Member Avatar for nazarahmat

i will develop bookmark online synchronizer for my project. but what is the suitable file synchronization techniques beside Rsync to accomplish my online bookmark?

0
45
Member Avatar for lesodk

Hi, i want to read some lines to an output text file in a loop. My problem is, that i want to start clearing the text file and then append to it in a loop. At the moment i use: ofstream file; file.clear(); file.open("book.txt", ios::app); for (map<string,Person>::const_iterator it = adrbook.begin(); …

Member Avatar for MosaicFuneral
0
244
Member Avatar for localp

[code=syntax] package testone; import java.io.*; public class fileread { private String[] a = new String[100]; String x; String sh; public void read(){ try { // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream("test.txt"); // Get the object of DataInputStream DataInputStream in = …

Member Avatar for stephen84s
0
98
Member Avatar for pancgom29p

Hi, I rather my dev team has a PDF file that needs to be compressed before it goes to download by users. Is there a way the compression can happen programatically without human intervention. step a) PDF file upload b) A script compress the file to a preset or acceptable …

Member Avatar for peter_budo
0
109
Member Avatar for bajanpoet

I'm trying to create a *.csv file using the records stored in a table. Searching the Net, I came across a code snippet that I modified for my use. The relevant code is [CODE] If dlg.ShowDialog = Windows.Forms.DialogResult.OK Then conn.Open() csv = dlg.FileName tw = New StreamWriter(csv) Dim sql = …

Member Avatar for 4advanced
0
2K
Member Avatar for Argo54325

Ok, something very wrong is going on with my program. When i run it the numbers it is giving me are sometimes right but are also wrong. H (the first letter in the word) is both = to 0 and 1 (wtf?). Any ways below i'll show you want i …

Member Avatar for VernonDozier
0
1K
Member Avatar for Argo54325

Ok so i made a decoder for this that gets the letters from the numbers that this encoder gets. Problem is that i think the numbers its giving me are wrong and i can't seem to figure out whats causing the problem. Help please! :( [CODE=C++]#define _CRT_RAND_S #include <iostream> #include …

Member Avatar for Argo54325
0
107
Member Avatar for Argo54325

When i runt he code and try to get the size of the 2 files something goes wrong with the msgIn file. I'm using the same method for both files and the bookIn will work but msgIn just returns 0 as if it never ran. this is the method that …

Member Avatar for Salem
0
139
Member Avatar for Argo54325

I'm trying to get a char back from the bookFile.txt but, when i run the program it returns nothing. I'm not sure if .get() if the right thing to be using. When i run this code i get the random number and the first letter of the msgFile.txt returned correctly. …

Member Avatar for nucleon
0
186
Member Avatar for ssreevidya.m

Hi, I have a need to insert images to the database. I tried it using the following code: [code]if ((file1.PostedFile != null) && (file1.PostedFile.ContentLength > 0)) { // Get the filename. byte[] fileData = null; string fn = System.IO.Path.GetFileName(file1.PostedFile.FileName); try { // Access the file stream and begin the upload. …

Member Avatar for ssreevidya.m
0
139
Member Avatar for SHWOO

This function is supposed to open a file stream and copy the text into an integer array to be used for a map key. Here is the contents of the file. I am getting the decimal value stored in the array and I just cannot figure out how to correct …

Member Avatar for WaltP
0
78
Member Avatar for jdbarry

I am need a little guidance here as to how I am to go about using a static method to read data from a text file. I know how to use a static method to write data to a text file, now I am wondering how to use a static …

Member Avatar for BestJewSinceJC
0
176
Member Avatar for lakhan.p

Hi, I m trying to open a file in read mode , my program is below ... #!/usr/bin/python print "------" file = open("C:\Lakhan\Pytonpro\file.txt", "r") print file file.close() but it shows following error ------ Traceback (innermost last): File "C:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 165, in RunScript exec f in __main__.__dict__ File "C:\Documents and …

Member Avatar for lakhan.p
0
202
Member Avatar for dbwalters

Hello, I was hoping that someone might be able to help me with this program: [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.FileNotFoundException; public class CustomerInfo extends JFrame implements ActionListener { //construct components JTextPane textPane = new JTextPane(); //initialize data in …

Member Avatar for hrdzdier
0
828
Member Avatar for waldchr

Hi I have been working on a project that requires me to be able to search a file for all occurrences of a string and store the entire line that contains a single occurrence of that string a an array of characters. For example: Search: web File: Time James [U]Web[/U]ster …

Member Avatar for waldchr
0
99
Member Avatar for Georges5

Hi all, I have written a C++ code that reads data (as double) from a huge binary file with size 2.5 GB, then process the data and write it to another binary file. What is really strange, the code works fine and smooth in Borland C Builder 6, but since …

Member Avatar for Georges5
0
250
Member Avatar for ganbree

I'm trying to read a Unicode file using std::wifstream. On wintel. [code=c++] #include <iostream> #include <fstream> #include <string> using namespace std; int main() { wifstream File("input.txt"); wstring Line; while(!File.eof() ) { getline(File, Line); wcout << Line << endl; } system("pause"); return 0; } [/code] And this is my output [code] …

Member Avatar for seanhunt
0
585
Member Avatar for koliva

Hello everyone, I have a ray-tracing code and I can successfully generate images taken from different view points. My generated image has 802x802 resolution. I am applying the same procedures for every different point of view. However, my generated .bmp files always have different file size. I wonder why? They …

Member Avatar for Salem
0
94
Member Avatar for blerina12

Hi guys. I was wondering if you could help me with this code. I am trying to open a file and read character by character. The program compiles but when I run it it aborts with an access violation while reading from the file. I made the program output the …

Member Avatar for blerina12
0
98
Member Avatar for deepalici0us

I am using Microsoft Visual C++ to write a program, i am trying to As records secretary for Cougar High School, you have been asked by the principal to prepare a report on the grades of some of the school's top athletes. Specifically, you must print each of the athlete's …

Member Avatar for vmanes
0
267
Member Avatar for aodpreacher

Hi i have a java class called City and in this class i have this. [CODE] public class City { /** * read the file and make 10 objects * */ private String name; private double population; public City(String name, double population) { super(); this.name = name; this.population = population; …

Member Avatar for BestJewSinceJC
0
137

The End.