6,015 Topics

Member Avatar for
Member Avatar for curiousstudent

I need to run a batch file batch file which is stored in my C folder. When I run this file, I get the following on the cmd. 1 APs were seen MAC Address SSID RSSI 00:27:0d:b6:df:10 IBM -93 Press any key to continue . . . Now, I need …

0
109
Member Avatar for LloydFarrell

Hello all, I have spent a good few days looking over daniweb trying to get the right answer, But I am yet to find what I am looking for. I have successfully upload my image to a folder store and named my uploaded image. The path and file name is …

Member Avatar for metalix
0
474
Member Avatar for omg0000

i have a .jar file that i want to run one certain computers on the network. Since these comps are changed out sometimes i wanted to add the java jdk that is up to date, the jdbc connector, and my .jar. I also have a batch file that copys and …

Member Avatar for stultuske
0
85
Member Avatar for piro87

Hi guys, i really need help here. I must write a program in c that reads a file .RAW that it contains photos in sequential order, every photo has a head-board of 4 bytes. (0xff 0xd8 oxff 0xe0 or 0xe1) and that way I can identify the beginning of the …

Member Avatar for Adak
0
832
Member Avatar for fire_

Hello. I'm using this constuction to write to file: [CODE]#include <iostream> #include <fstream> using namespace std; int main () { char data [50]; cout << "Enter data\n"; cin >> data; ofstream file("data.txt"); if (!file) { cout << "File opening error"; cin.get(); return 1; } file << data; file.close(); cout << …

Member Avatar for abdelhakeem
0
131
Member Avatar for mkcee

I am having difficulty reading the following input file Jon 40 Chris 50 Pete 60 what is wrong with this code that I wrote to read the above file. thank you for your help. [code]//***************** #include <iostream> #include <string> #include <stdlib.h> #include <fstream> #include <iomanip> #include<cassert> using namespace std; void …

Member Avatar for nutristars
0
228
Member Avatar for jackabascal

[CODE]private Bitmap _picture = new Bitmap(@"<C:\Users\Jack\Documents\Visual Studio 2010\Projects\Animotion1.0\DefaultCharPic.jpg>");[/CODE] as a datamember to a class? Can I just not assign Bitmaps as members?

Member Avatar for Zinderin
0
220
Member Avatar for Fluffybunny

Hi I am sending a text file to a remote app using urllib2. It all works well, but it just seems to take a very long time to send the data. My code is basically doing : TxData = open('OutputFile.txt') data = {'name': 'value', 'file': TxData } f = urllib2.urlopen(url, …

Member Avatar for TrustyTony
0
2K
Member Avatar for shawarmah

When i click "showcontents" it should display something like this in the label IF the file is non-text. The problem is it would not show some non-text files.. or it would only display a few characters like "MZ" Another is the copy button doesnt work. It should copy a file …

Member Avatar for vb5prgrmr
0
162
Member Avatar for changachoo

so i have a dell laptop latitude D600 and i have trouble with things such as logging into fabcebook, yahoo, aol, etc. that seems to be it for internet troubles. But when i turn my computer on this black screen shows up with white writing and at the bottom of …

Member Avatar for SillyBilly
0
118
Member Avatar for dogwood705

Hi, I am new to C++ and am getting stuck with just reading in data from a text file into an array. I have looked at lots of examples online, but can't find one that matches what I am trying to do. The data consists of two variables, date and …

Member Avatar for dogwood705
0
364
Member Avatar for daudiam

I used the following code to download HTML files and subtitle files over the Internet. But when I give the url of a Youtube video, the download stops very quickly and though some file IS downloaded, it doesn't open. Why ? [CODE]class read { public static void main(String aa[])throws IOException …

Member Avatar for NormR1
0
261
Member Avatar for Guest51

I have a DVD inventory record program that creates a DAT file if none exists and then stores the user input. As long as the program is running the user may then advance one record at a time (forward or back) through the files, skip at anytime to the first …

Member Avatar for Guest51
0
4K
Member Avatar for hisan

Hi, I want to know how to read the binary file from 10th byte to 90th byte in a file size of 100 bytes and need to write the read data into new binary file. please help me in doing this.

Member Avatar for hisan
0
89
Member Avatar for PotaZinga

hi please guys help am also trying to upload a small file and this is the code i used.i have have also tried looking at the [url]http://www.freeaspupload.net[/url] site but am very new and i learn as i do . i have used this code by the way it was 1st …

Member Avatar for achinaseller
0
134
Member Avatar for navi17

Hello friends, I am working on downloading script. its working fine in all browsers. but in IE when i click on download button its showing the size of every file zero bytes. I have done lots of googling but didnot find anything. Please help its very urgent. I am using …

Member Avatar for navi17
0
138
Member Avatar for GuyClapperton

Nobody should have any reason to wish the fledgeling [URL="http://www.hmvdigital.com"]HMVDigital[/URL] music store, launching today, anything but the best of luck (unless you're an Apple shareholder). A bad business is in nobody's interests and a competitor to an obvious leader is a good thing. On the surface many of the omens …

Member Avatar for omol
0
248
Member Avatar for fingerpainting

[B]Background: [/B] I'm extracting values from a file which is sometimes an xls and sometimes an xlsx file. An xls is easily read with xlrd, but xlrd nor any other Python library (as far as I could find) supports xlsx, so instead I'm using[URL="http://github.com/dilshod/xlsx2csv"] xlsx2csv[/URL] to convert to csv and …

Member Avatar for fingerpainting
0
9K
Member Avatar for surabhi.awh

hai iam new to jsp.i want to uplad an image to my website .my code is given below. Pls anyone help me ........... thanks in advance [code=java]import com.mysql.jdbc.Connection; import com.mysql.jdbc.Statement; import java.io.*; import java.sql.DriverManager; import java.util.Iterator; import java.util.List; import java.util.Random; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.servlet.*; import javax.servlet.http.*; import org.apache.commons.fileupload.*; …

Member Avatar for jaka.ramdani
0
162
Member Avatar for nickles

I'm trying to decrypt some data from gpg files that I've downloaded. Downloading the files to a directory is no problem, but I'm having trouble actually decrypting them. Here's what I'm doing right now: [CODE]def extractGPGs(gpglist,path,gpgPath="\"C:\\Program Files\\GNU\\GnuPG\\gpg.exe\""): os.chdir(path) if not os.path.isdir("GPGFiles"): os.mkdir("GPGFiles") if not os.path.isdir("OtherFiles"): os.mkdir("OtherFiles") if gpglist == None: …

0
70
Member Avatar for yap_1991

Hi all, Im currently working on a FTP program that downloads all files in a directory. Currently, I am able to list all the files in that directory, but I am stuck as on how to download all of them automatically. Would need some help in this. Thank you. [CODE]import …

Member Avatar for NormR1
0
113
Member Avatar for KSGuan

Hello, I'm just a beginner (student). Now still undergo C programming class to upgrade my knowledge in C. I was asked to complete a simple program to get the output of C program in the text file as shown below. This program is to help user to consider a range …

Member Avatar for codewriter_IND
0
127
Member Avatar for sandgirl

I am trying to help my sister who can not start-up Windows 98 on her Compaq laptop. When we turn the laptop on, it goes to a DOS window and tells us that: >>>>>>>>>>>>>> The Windows Registry or SYSTEM.INI file refers to this device file, but the device file no …

Member Avatar for hellsbell
0
278
Member Avatar for aea414

Hello all, I think am having problem getting the add_to_list function below to work. I created it so that it accepts a pointer to a linked list, a pointer to a char array (string) and a number for occurrence of the word. [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include …

Member Avatar for aea414
0
204
Member Avatar for levsha

Here is a problem. I have an HTML form with several fields in it. One of the fields - 'Upload file'. When I upload a file, everything works properly. But when I choose to submit the form without a file, it gives me the error message: "There was an error …

Member Avatar for levsha
0
168
Member Avatar for P00dle

[CODE]try { File realFile = new File(file); boolean rename = realFile.renameTo(new File("C:\\Dummy Files 2\\" + file)); if (rename) { System.out.println(file + " was moved succesfully"); boolean delete = realFile.delete(); if (delete) { System.out.println(realFile.getAbsolutePath() + " was deleted"); } else { System.out.println(realFile.getAbsolutePath() + " could not be deleted"); } } else …

Member Avatar for P00dle
0
333
Member Avatar for P00dle

I'm trying to move a file to a different directory using .renameTo() This isn't working, as the file is still in the original dir after the code has completed, and there is a copy of the file in the target directory. I tried deleting the original file, which doesn't work. …

Member Avatar for P00dle
0
256
Member Avatar for ksmadhuri

hi, in my project i need to develop xml file..i created...im facing problem in deletion of white spaces in xml file..the deletion is working fine..but after deleting the elements it is showing white spaces..but i need to delete that white spaces...can anyone provide me how to do...here is my code... …

0
55
Member Avatar for vlad44

hi everbody I was opening all files in a certain folder I've used WIN32_FIND_DATA, FindFirstFile, FindNextFile. it works well but for certain extension that i ask the user to enter i.e it will get only all the files with the extension given by he user and ignore any thing else …

Member Avatar for Ancient Dragon
0
199
Member Avatar for dougancil

I have the following code: [CODE] Private Function BuildDataTable(ByVal fileFullPath As String, ByVal seperator As Char) As DataTable Dim myTable As New DataTable("MyTable") Dim i As Integer = 0 Dim myRow As DataRow = Nothing Dim fieldValues As String() = Nothing 'string FileToRead = Server.MapPath(fileFullPath); Dim myReader As System.IO.StreamReader = …

Member Avatar for dougancil
0
116
Member Avatar for krap_nek

Hi, well what I'm trying to do with this, is to read a text file line by line and pass its data to the struct. the problem is that not only i can't read the strings and put it on the struct fields, I also get a segmentation fault. Could …

Member Avatar for xwolfjack
0
3K
Member Avatar for Neitz

i just had a new Aztech DSL605ER broadband modem installed in my network. im accessing internet at a faster rate now but the bill has skyrocketted due to unlimited downloads from the other users on the network. is there any way i can control or limit the downloads?

Member Avatar for khakilang
0
153
Member Avatar for obscurecoder

I recently tried to run some scripts in Python on my .db file, but whenever I try to establish a connection, I get the following error: [code = python] >>> conn = sqlite3.connect('C:\Users\1545User\Documents\SEETA\ShruthLaikh\dict2. db', isolation_level=None) Traceback (most recent call last): File "<stdin>", line 1, in <module> sqlite3.OperationalError: unable to open …

Member Avatar for TrustyTony
0
74
Member Avatar for P00dle

Would Java be able to .rename() a file while it is still being written, or will it detect that the file is in use? Also, is it possible to open a file for exclusive access in Java, and will this fail if the file is still being written? Thanks.

Member Avatar for P00dle
0
112
Member Avatar for joewinsock

Tool.h file [CODE] #ifndef TOOL_H #define TOOL_H #include <string> using std::string; const int LENGTH = 30; class Tool { Tool ( int = -1; string = " "; int = 0; double = 0.0 ); public: int getPartNumber(); int setPartNumber( void ); char getToolName(); int setToolName( void ); int getInStock(); …

Member Avatar for Andreas5
0
278
Member Avatar for adi.shoukat

I want to write a Code in C which can create copy any given file (txt, bmp, jpg, pdf etc) what i've written so far is: int main(){ FILE *fp; char ch; FILE *fpW; if((fpW = fopen("file2.gif","wb"))==NULL) { printf("Cannot open Destination file.\n"); exit(1); } if((fp = fopen("file.gif","rb"))==NULL) { printf("Cannot open …

Member Avatar for Adak
0
2K
Member Avatar for levsha

I am able to attach a file using SwiftMailer with its name hardcoded. But what if the file is uploaded by a user from an HTML form's 'file' input type control and has to be sent with an email by a PHP script? How do I specify the file name …

Member Avatar for levsha
0
147
Member Avatar for sagarpc2007

I try for uploading file on web server as images of video files with File Uploader Control in asp dot net 2.0. it's ok when we are uploading filea on local machine but on web server it's not work properly. Message thrown Path is Access Denied Please Reply..

Member Avatar for dnanetwork
0
112
Member Avatar for bettersaid

im a newbie to python, still learning as of today. as a part of my 'self-training' i listed some topics to practice every week but i was not able to run it successfully and im stuck. what i wanted with my activity is for it to read a .txt file …

Member Avatar for woooee
0
180
Member Avatar for Mattisc

Hello, I am trying to send files from one directory to another and then renaming them to a ordered list of numbered files. The only problem is when you do it once and then do it again the file numbering goes back to 0 so is unable to move as …

Member Avatar for Geekitygeek
0
108
Member Avatar for Mattisc

I am trying to move Txt files from one folder to another but I keep getting an error message stating "illegal characters in path". I think it's because of the * in the file name but how do i change it to except it? string sourceFile = @"C:\\new1\*.txt"; string destinationFile …

Member Avatar for swagerr
0
1K
Member Avatar for enkidu75

The point is to read a file and then display the information from a 2D array. Then find the highest value in each column and divide all the numbers in each column by the high value for that column. Then display the quotients (which I put back into the original …

Member Avatar for StuXYZ
0
154
Member Avatar for judithSampathwa

Hi there, I want to upload files with the extension pdf, doc excel and images to the MS SQL database from a C# desktop application. I am using C#.net and not asp. I want to upload a file from a interface to the ms sql database, Hey can someone guide …

Member Avatar for nick.crane
0
628
Member Avatar for SorinX

I am using a custom made application that is using MSDE 2000 transact SQL. Thing is that I've made a simple batch file in order to save databases automatically every day but it seems I made a mistake... I never expected the server to save in the same file if …

Member Avatar for SorinX
0
96
Member Avatar for dy/dx

hi. we have this project, and we have to open a file where we will get what we need to evaluate. The problem is I can't move on to my project because the eclipse (using mingw compiler) can't build my source code. Here's my source code: [CODE]#include<stdio.h> #include<ctype.h> #include<stdlib.h> #include<string.h> …

Member Avatar for kings_mitra
0
184
Member Avatar for iamchamith

Hi friends, My question is... I was Created asp.net application using asp 2005 and code behind file as the C#.net with IIS 6 Then I host my web application on internet in IIS 6 server... There is the page,using this i can upload file[image files] to internet...[by using file uploader] …

Member Avatar for Ramesh S
0
258
Member Avatar for phaedrusGhost

Hi all, In a secured php document I have a file uploader that was only for PDFs but they want xlsx, xls, ,docx, txt, rtf and ppt file extensions. To filter the files coming in I have this: [code] $allowedExtensions = array("txt","csv","htm","html","xml", "css","doc","xls","rtf","ppt","pdf","xlsx","docx"); foreach ($_FILES as $file) { if ($file['tmp_name'] …

Member Avatar for phaedrusGhost
0
134
Member Avatar for mcbothra99

I am trying to run one of the two files on my site using if file exist and readfile functions. When I give the file path in readfile() it runs properly. But when I use same file path into if file exist() it says "file does not exist". ================= It …

Member Avatar for DarkBerzerk™
0
673
Member Avatar for TwijoO

hi, due to my FTP server not liking to upload .exe files in order to get my auto updater to work i have to rename the folder .file before i upload [I](example: C:/.../desktop/twijoo.exe.file)[/I] after this is downloaded i need it to check the application folder for any files ending with …

Member Avatar for TwijoO
0
179
Member Avatar for DarkBerzerk™

Hi i am new in this website and i hope i have fun with all the members here, I am trying to make code that get all the names of the files from folder and beside each one link to delete it This is the code i have done but …

Member Avatar for rajarajan2017
0
155

The End.