7,373 Topics

Member Avatar for
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 juanporto

Hi, I have the following Sockets server, which works asynchronously and accepts multiple clients connected at once. I got it from the microsoft website. I made slight modifications in the example code, in the configuration of the IPAddress and port. [CODE]1. using System; 2. using System.Net; 3. using System.Net.Sockets; 4. …

0
31
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 googles_go~

[code] if (infile != null) { infile.Close(); } if (reader != null) { reader.Close(); } //Creating a File Stream object to Open a file called FILENAME for writing outfile = new FileStream(FILENAME, FileMode.Append, FileAccess.Write); //Creating a Stream Writer with the outFile File Stream object writer = new StreamWriter(outfile); writer.Write("Income : …

Member Avatar for jonsca
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 qdiscoverer

Hi! I'm trying to save/load all my program's data with just one big serialization.(I'm really depending on this) Below are the codes I used to test serialization---but it seems that something is wrong with it. I'm too confused, since I learnt serialization as a 'magical genie' kind of thing that …

Member Avatar for qdiscoverer
0
123
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 googles_go~

Ok erm here goes, im supposed to create a simple log in application using c#, howeaver, all the records of the userIDs and PINs are in a notepad file, which means i need to use a filestream. But heres the problem, how can i make my filestream object read through …

Member Avatar for jonsca
0
312
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 M4RUF

I've got to write an application in C which can take an input file containing RISC instructions and then output to screen the encoded version of these instructions. I will be working with the following op-classes: 0 1A 2A 2B 2C 3A 3B 3C 3D I already have the code …

0
55
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 zeah

Hi All, I was trying to implement highlighter in my search engine. I was able to implement the highlighter but the problem is it does not always work. Sometimes it highlight and sometimes it doesnt though lucene returns the file where the term was found. I can manually see the …

0
91
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 GAME

Hello, I have a void that goes like this [COLOR="Red"]private void Blah(Stream File)[/COLOR] Then When I go to use it I want to use it like this [COLOR="Red"]Blah(path)[/COLOR] [COLOR="Red"]The path represents a file.name[/COLOR]. It is real complicated. I mean over a 1000 lines of code for the [COLOR="red"]Blah(Stream File)[/COLOR] The …

Member Avatar for Geekitygeek
0
121
Member Avatar for Ajuddy

what kind of error is this? my page was just running fine. i did not change anything neither the location of the requested file. Warning: require_once(../php/main.php) [function.require-once]: failed to open stream: No such file or directory in.................... line 7 Fatal error: require_once() [function.require]: Failed opening required '../php/main.php' (include_path='.;C:\php5\pear') in..........................line 7.

Member Avatar for almostbob
0
144
Member Avatar for gear26926

Hi, The above code generates a window and it has a few buttons on it.That is working fine. But however the part of the code where class "FileDialog" is defined and the function "myButton5_Click" is used, it does not seem to work. The output should be such that - When …

Member Avatar for gear26926
0
208
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.