6,015 Topics

Member Avatar for
Member Avatar for Dajer

Hi friends I have a project with C#.when I run my project's exe and I want to run one part of my project,I have this error: System.IO.FileNotFoundException: Could not load file or assembly 'Interop.DTS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File …

Member Avatar for Huntondoom
0
162
Member Avatar for megachip04

Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/oeaivcom:/usr/lib/php:/usr/local/lib/php:/tmp) I am trying to create a form that someone can submit a file to an ftp location. I found a script online and it is giving me this error. Could anyone point me in the …

Member Avatar for Insensus
0
580
Member Avatar for ghosh22

Hi everyone.. I am trying to write a perl code which appends a text file after taking two inputs from the user. It saves the file in tab delimited format. I have the input text file attached here. Now I want the file to check if the user given input …

Member Avatar for ghosh22
0
432
Member Avatar for G_Waddell

Hi guys, This one is a bit out of left field but someone somewhere must have tried this before. Does anyone out there know how to control the width of the filepath textbox in a fileupload control? I have a form with a comment textbox, a filetype dropdown and a …

Member Avatar for Netcode
0
758
Member Avatar for abc88

I am reading a text file line by line using StreamReader.Readline(). After reading a line i have to check whether some fields of the line which is read are present in the rest of the file or not. What i am doing is that after reading a line from the …

Member Avatar for san-biegwenja
0
554
Member Avatar for Alternativeguy

Hey All I have made this upload script but everytime I tried to execute it, it fails and gives me this error. [URL="http://www.daniweb.com/forums/attachment.php?attachmentid=21701&stc=1&d=1311399235"]http://www.daniweb.com/forums/attachment.php?attachmentid=21701&stc=1&d=1311399235[/URL] This is my code in the Upload.php File: [CODE] <form enctype='multipart/form-data' action='Upload_File.php' method='POST'> Please choose a file: <input name='myfile' type='file' /><br /> <input type='submit' name='submit' value='Upload' /> …

Member Avatar for ddymacek
0
99
Member Avatar for vincenzorm117

Hey very simple problem. I've been searching the site to see if I did anything wrong and I had to fail because I still get the wrong results (semantic error). Problem #1: Every time I use fopen with the "w" (or write) mode the file with whatever name given is …

Member Avatar for vincenzorm117
0
1K
Member Avatar for gunjannigam

I have written a code which uses RXTX Serial API for communication. Now I want to distribute a jar file for my program. The problem is that since I have used RXTX Serial API jar & dll files for this needs to be copied in java home. I wrote a …

Member Avatar for NormR1
0
252
Member Avatar for piyushdhamecha

I am using VB6 i am create Crystal Report File at run time using CreateReportOnRuntimeDS "p2smon.dll" API function. this function will connect the .ttx file to the report. now i want to connect another one. i am creating .ttx file is at run time using CreateFieldDefFile "p2smon.dll" API function. now …

Member Avatar for debasisdas
0
389
Member Avatar for emmyt

Hi every one,pls am trying to copy the content of my fileupload unto an hidden text box so that users will not have to copy it manually,but it just copies the file name wit exception of the path.I need the path name but in IE9,firefox,opera all i get is the …

Member Avatar for G_Waddell
0
145
Member Avatar for bibiki

hey there, I am trying to write a simple script that lets me remove lines from a file. I have an elementet.txt file that contains one-word lines. I thought that if I put the file lines onto an array, and then put back the array elements back on file, excluding …

Member Avatar for bibiki
0
124
Member Avatar for cliffcc

How to do checking before importing the csv file by php? I have a csv file which contains the information with the columns (id, name, telephone , email) and have the database with the same columns. I have the php file which can import the csv into the database. Now,i …

Member Avatar for cliffcc
0
3K
Member Avatar for xxlt3xx

Hi, I'm stuck... I'm writing a program that creates a data file then populates the file with 500 random integers both positive and negative. The problem I'm having is reading the integers from the file and storing them into three arrays for processing neg[],posEven[],and posOdd[]. I really just need a …

Member Avatar for xxlt3xx
0
172
Member Avatar for 184100

Hello all and thank you in advance. I am building a website (AP.NET 3.5 and C#) that I put a File Uploader on using the "FileUpload". I then created a Button that has the following code in it: String savePath = @"DESTINATION_PATH"; if (FileUpload1.HasFile) { String fileName = FileUpload1.FileName; savePath …

Member Avatar for stbuchok
0
185
Member Avatar for rayden150

I tried to store several data an cant achieve it: [CODE] #include <iostream> #include <string.h> #include <stdlib.h.> #include <stdio.h> #include "estructura.h" void guardar_cliente(cliente x) { FILE*f; f= fopen("data.txt", "w"); fwrite(&x, sizeof(x), 1, f); fclose(f); } [/CODE] I dont know whats wrong im using another cpp file and a header file …

Member Avatar for mike_2000_17
0
256
Member Avatar for WildBamaBoy

Here's my dilema. My client program is going to request a certain file from my server program, so the server program needs to send the size of the file it requests and then the file itself by using a Socket all in one go. My client will then read the …

Member Avatar for WildBamaBoy
0
409
Member Avatar for Zagga

Hi folks, I am trying to create a function that adds comments to a text file. If the file exists, the comments are added to it. If the file doesn't exist, it is created then the comments are added to it. If there are any problems, an error message is …

Member Avatar for Zagga
0
181
Member Avatar for milan2011

Hi, I am trying to read two strings per line and store them in strings so i can use them in my program.for example if this is my input file: [CODE]cat:yellow dog:blue chicken:red[/CODE] i wan to store cat as animal1 string dog as animal2 string and yellow as colour1 string …

Member Avatar for Lyandor
0
170
Member Avatar for rhuffman8

This is a continuation of problems with the program posted here: [URL="http://www.daniweb.com/software-development/python/threads/372311"]http://www.daniweb.com/software-development/python/threads/372311[/URL] I started thinking there was something wrong with my statement to open the csv file, using the reader. [CODE]reader = csv.reader(open('C:/Documents and Settings/VPC.VPC-SCALA.000/Desktop/RAH 7-11-11/RH/Projected Cash Goals Template.csv', 'rb')) [/CODE] I put a test statement above the open statement …

Member Avatar for rhuffman8
0
353
Member Avatar for lifeworks

Hi, story goes... I need to process a timesheet - I want to use a csv file of the spreadsheet, so I was hoping to plug in the path to what Google said was a CSV output of a spreadsheet... [url]https://spreadsheets0.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AhhCntOrEg9FdF9PZkIwY08tZTdwd3lkYkJFNEtkMkE&single=true&gid=1&output=csv[/url] Unfortunately if you click on that link, it prompts …

Member Avatar for almostbob
0
195
Member Avatar for abdul04

Hi, i have written this block of code which deletes a record from a file, it works to some extent. i can delete existing records but at the second deletion and i display the file contents, i get some gibberish. also i cannot delete records which i have added to …

0
54
Member Avatar for thecoolman5

hi, i have this code [CODE]#include <fstream.h> #include<iostream> using namespace std; int main (char argc) { for(;;) { fstream file; file.open("file.txt"); cout << "Enter new high score." << endl; double n2; cin >> n2; double n1; file >> n1; if(n1 > n2) { cout << "You didn't beat the high …

Member Avatar for thecoolman5
0
1K
Member Avatar for webdi

Hi, I've not been successful looking for a solution to my problem. What I need is to password protect a directory. I could use htaccess, but the user doesn't want a pop-up login window. He wants to start on a page with a form with the username and password fields. …

Member Avatar for Stefano Mtangoo
0
203
Member Avatar for shailaja mohite

Hi I was created one web application. In which i am using the ajax control asyncfileupload file uploader in update panel. Upload file correctly but when i refresh the page then double this file is uploaded.. how to fix this problem in asp.net? please help me how to postback the …

Member Avatar for crishlay
0
286
Member Avatar for bob on whidbey

Some simple php code; [code=php] $dir = '../images/'; $file = $_GET['name']; // Last, First M. "nickname" $f = $dir.$file; list($width, $height, $type, $attr) = getimagesize($f); echo $f."<br />"; echo "width ".$width."<br />"; echo "<img src='$f' $attr title='getimagesize example' />"; [/code] while the last echo line displays the image correctly (and …

Member Avatar for diafol
0
3K
Member Avatar for manish250

hello all i am doing a copy operation from a file to another file.in source file i have 13 digit no but in destination file there is only 12 digit copied.code is as follows. [CODE]public void createOriganalFile() { try { File ObjInputFile1 = new File(strFilepath + "_dummy.txt"); File ObjOutputFile1 = …

Member Avatar for hfx642
0
201
Member Avatar for Mahesha999

Hi I am coding for cross-page posting using PostBackUrl property of the button on Page1. But the Button when clicked does not postbacks to the target page, simply flashes up Page1. When digged inside the html resource of the page1, I found the WebResource.axd file as a script holder When …

0
92
Member Avatar for dwinn

I have created a program in ASP.Net and VB.Net that allows users to loging and download and upload files to and from an FTP site. I have so far got it to the point where the user can download files and when they go to the download page, a listbox …

Member Avatar for dwinn
0
160
Member Avatar for gendler.max

Hi all, I am a student and would like to know where i can get a free download of matlab. Is that possible anywhere?

Member Avatar for shiva07
0
141
Member Avatar for Kostas Theof

Hello to everyone and wish for a Happy New Year. I have an html code from which I want to execute various php files (with various parameters). Say the html file is called htmlcode.html. Say one php file is called phpfile1.php and a second php file called phpfile2.php Everything works …

Member Avatar for yahya al salman
0
3K
Member Avatar for tstory28

I was following some code presented by another developer and for some reason the program is not reading the txt file that I created with the csv data. What am I doing wrong? [CODE]Option Explicit On Option Strict On Imports System Imports System.IO Public Class ConverterUpdated Dim UnitConvVal As Double …

Member Avatar for hericles
0
171
Member Avatar for SilentCoder

Hey guys i am new to c++ and i was practicing read/write specific line from an ini file. My File [CODE] // browser ini file // options resolution 100 300 fullscreen 1 account "silentcoder" [/CODE] My Code [Prints out the whole configuration file since my code said to do so] …

Member Avatar for m4ster_r0shi
0
11K
Member Avatar for ibakir

a browse and submit button when pick the image and submit , the image name goes to my SQL table and the image it self that the customer pick it copied to my "upload" folder :( my problem is that i only see the image name , so my issue …

Member Avatar for diafol
0
163
Member Avatar for sirlink99

I am trying to read a custom file extension When reading a string from the file it output the correct string, however when I attempt to read an int it does not output the correct int. Here is my code: [CODE] import java.awt.event.*; import java.awt.*; import java.io.BufferedReader; import java.io.FileInputStream; import …

Member Avatar for NormR1
0
276
Member Avatar for tubby123

Guys before i post my problem , lemme say that, i HAVE gone through the previous blogs/forums on daniweb, so please dont get annoyed with this topic again. But none of them answer my question My question is, "How do you write a structure to a file and retrieve data …

Member Avatar for Narue
0
2K
Member Avatar for celestial_sea

Hello guys! i really need your help. In my program, I am reading the contents of the file. File looks like this: [CODE] 1 ART ACE APE 2 BAT BOY 3 CAT COP CUP CAP CUT [/CODE] I want to store the words in an array. one array per line. …

Member Avatar for Adak
0
146
Member Avatar for Statixs

Allright! By default .avi files being opened by vlc player. But everytime when i turn on my computer, the default goes back to winamp. File association is set to vlc, but it switches back every time when i turn off my freakin laptop. Any solutions? :)

Member Avatar for MoZo1
0
114
Member Avatar for tubby123

Hey, this one is agaain from File-handling How do you replace a word in a file with another word. The algorithm should be somewhat like this 1)Read (fgets) the entire line into a buffer. Locate the word/ position of the word. 2)From that point onwards, OVERWRITE the contents in the …

Member Avatar for Adak
0
179
Member Avatar for cesione

I just started leaning c programming, and i have been doing alright, but now am stuck with a problem, I do not know how to read information from a file in c. the file contains info like; 123456789123456789123456789123456789...and so on. i have to read the file in, and then group …

Member Avatar for Ancient Dragon
0
173
Member Avatar for ana_1234

Hey, Does anyone know how to cpy from one file and redirect to another. I know I have to use the ofstream but I'm stuck. [CODE] while (!in1.eof()) // while not end of input file { in1.getline(current, 100); // read a character from input file out1.in }[/CODE] I'm stuck. I …

Member Avatar for Narue
0
346
Member Avatar for leo1937ca

I am using the EXAMPLE Code in the attached code example to copy a CSV file into a 2d array. The Code came with a CSV Data Example with the Filename of "Test.CSV". As the code indicates the Dimensions are handled by the Ubound parameter and the ReDim option. The …

Member Avatar for Reverend Jim
0
170
Member Avatar for wickedBlast

Hello community! My first post here. (might probably have been under c#.. filename.asp.cs) I have a web AD management project undergoing as I am currently at testing.. the interface *yay* Extent of the project; pulling a list of employees managed by Mr X. Edit specific fields. I'm building my interface …

Member Avatar for wickedBlast
0
276
Member Avatar for sdr001

Hello, I am almost done with writing the program below. My problem is when I go to get the next line in the file, the first line works great. I am writing it in autoit and I heard it is similar to Basic so hopefully someone could help. I am …

0
92
Member Avatar for Behseini

Hi Guys, This looks a little bit silly question but I really have problem with unzipping the oracle Oracle Database 11g Release 2 downloaded files. I am trying to install oracle on my Windows Vista and according to the Oracle download webpage : [CODE]Directions 1. All files are in the …

Member Avatar for debasisdas
0
147
Member Avatar for mchin131

I have a program where it reads 2 files, one of them containing a file with customer number (int), customer name (string) and balance (double). There are 7 lines, but my program would only read the first line 7 times. This program is confusing me as to why they won't …

Member Avatar for NathanOliver
0
156
Member Avatar for tubby123

hi , getw() is used to read the next INTEGER from a filestream right ? Assume ------- My text document has the following 12 i am an 3 4 intern 5 67 Expected output --------------- Then , i expected that, on running getw() inside a while loop, it would print …

Member Avatar for rubberman
0
126
Member Avatar for EricIskhakov

Hello. I have a FileUpload control in my app, and a user chooses a file that sits on mapped network drives. now i don't want the files to actully download i only want the path to it for a link. my question is how do i get the real path …

0
117
Member Avatar for airerdem

Hi, I assigned the name of the file to string vector. I mean when I print the vector, it seems like cout<< files[0]; It prints file.txt and I want to open the file by using vector. I tried ifstream file ("files[0]"); and ifstream file (files[0]); but they did not work. …

Member Avatar for airerdem
0
94
Member Avatar for geekme

I created a test.php file in the required /var/www folder but how do I edit the file ?It says it's only a read only file.Using chmod +rwx <filename> says 'no such file'...Please help .

Member Avatar for geekme
0
137
Member Avatar for ctsmith84

I am creating an application using Microsoft.Office.Interop framework (C#) for Excel. And the issue that I am trying to figure out is whether or not I can somehow attach an existing excel file with a format template to the application? In other words, is there a way to use a …

Member Avatar for jfarrugia
0
112

The End.