7,373 Topics
![]() | |
I would like to know if there is some way to search through all the folders on a drive to find out how my disk space is being used. I want to search my files to see what can be deleted for space or at lease to see where it … | |
Hi all. I am having issues with people not closing an important file in excel. I have a new vb.net based application that i want to close the excel file when i prompt it to. The application checks for specific named files in a hidden folder on a timer event, … | |
I hava exams in java and when I study I saw this excercise and I try to solve it but I found somne difficulity so please help me Consider the following comment, header and partial code for a method in a utility encryption class called Atbash. [CODE] /** * Prompts … | |
Is there a way to make a file shredder in VB .NET..if is there plz explain it with code... | |
Hi, I am a novice programmer at PHP. I want to redirect my webpage to another webpage. The problem is that First I want to output a file as an attachment and then redirect the web page I have used this code to output the attachment file [CODE] header("Content-Disposition: attachment; … | |
hello!. i need help with import in java. i want for example when i click a button in java to open a exe file,so i imported the exe into java,and i make the program everything is okay. so i export my classes into a jar file,so when i click the … | |
Hello guys, First of all I'm not really good with Java. To be honest I'd rather call my Java skills bad. But here comes my problem. I want to download a CSV file from a specific URL and save it at the TEMP directory. Then i want to read this … | |
Hello, I have folder on remote FTP server that is updated with more than XML file with different names in asynchronous (not scheduled time), I want to make a PHP application that fetch any new XML file arrives at the FTP automatically, so how can I make the PHP application … | |
Hi! I try to implement a matrix template class which inherits the vector of vectors. The message I get: "error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const Vector<T> *' (or there is no acceptable conversion)" (When I call the alternate matrix constructor, … | |
I have following text file input.txt Ram Shaym Rahul Radha Madhuri Sita I want to read this file and create new file from this file showing following change output.txt Ram Shyam Rahul Radha Sridevi Sita I want to replace Madhuri by Sridevi and send output in output.txt Can anyone please … | |
Can somebody help me to write a simple shell script to find words listed in a text file (text file A) from another text file (text file B). The idea is to check whether a word in the text file A (separated by lines) exists in text file B and … | |
Hi all, I am in fruit industry and dealing with stock inventory of fruits. I got 2 files, one file got fruit names (fruit.txt) and other file got the inventory status (status.txt). Task for me was to check the fruit list and update the inventory status: Contents of the files: … | |
hello, I am currently working on CMS and I want a way for the user to upload images to go along with their post how would I upload the image with php and then add it into the database for later retrieval when people look at the posts? | |
Hi guys,I am trying to force download files from ftp server to my local machine using the following code. [CODE] <?php header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"" . basename($filename) . "\""); header("Content-Transfer-Encoding: binary"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'ftp://username:password@localhost/'.$path.'/'.$filename); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close($ch); ?>[/CODE] The above code works perfectly … | |
Hi, i'm trying to copy all txt files from a directory into one file to another directory. But i have the following error: "FileStreamsTest: java.io.FileNotFoundException: . (Accès refused)"" My txt files are located in the project folder of NetBeans. here is my code: [CODE]package FileStreamTest; import java.io.*; class FileStreamsTest { … | |
i want to know how to check if the file already exists before creating the file? [CODE] puts("please enter a file name to create:\n"); scanf("%s", &file_name); create_pointer = fopen( file_name, "ab"); if( create_pointer == NULL) //create file// else { //file already exist// how would you check if the file already … | |
![]() | What is File? and what is stream? in Description. |
Any idea how to check if a text file is still being opened by another program?? I wanted to write to the file after the other program had finished its task and closed the text file. As i know two programs cant open the same file at the same time. | |
Hi There! Our company became a reseller, and we didnt get the product info's in normal way (cd, email, xml, etc). So we have to go to their website and download all of the product infos (name, description, price, pictures) one by one. This could be fun if you have … | |
I have an ASP.Net site that includes a folder named "files" as a subdirectory of the site. I have a help page set up with links that are set to "~/files/help1.doc", "~/files/help2.doc", etc... These all work great. I have another section of the site where the user clicks a button … | |
Pleaseee help me guys. I can't figure out why the elements in my array are null. I'm reading in from a file and take each line and saving it as a variable in the object and then adding the object to the array. This is what I have so far...when … | |
Hi I am new to Java. I am trying to develop a tool in which I am trying to download a file from a link. When I go to that link using my java program, IE is opened and its default File Download window is showing. But I need to … | |
Hi all, I have a file with data 300 lines. (in.txt) I want to make a program that seperates the file in two others (out1.txt, out2.txt). But I would like to do it with percentage. For example, Percentage (%): 50 and seperate the in.txt file in the middle but with … | |
[code]<?xml version="1.0" encoding="ISO-8859-1" ?> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="javax.servlet.http.*" %> <%@ page import="org.apache.commons.fileupload.*" %> <%@ page import="org.apache.commons.fileupload.disk.*" %> <%@ page import="org.apache.commons.fileupload.servlet.*" %> <%@ page import="org.apache.commons.io.output.*" %> <%@ page import="java.io.*,java.util.*,javax.mail.*"%> <%@ page import="javax.activation.*"%> <%@ page import="javax.servlet.http.*,javax.servlet.*" %> <%@ page import="javax.mail.internet.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" … | |
I'm new to C# and I'm having some trouble getting input from a file and using it properly. I need to get input from a file and insert the values given into a function but the problem is I need to give the functions parameters that aren't strings. TimePiece is … | |
Hi, I would like to using POSIX API system calls in C, and via command line arguments know how to go about extracting from an archive file.(in Linux). I have done the archiving process it archives the files I enter into the command line , and the last but one … | |
Hi there)) I cann't deal with the file opening operation - [CODE]char* fpath = "D:\TC\myprog\readit.txt"; FILE* fp; fp = fopen (fpath, "r"); if (fp != NULL) printf ("\n(!) File opennig error\n"); else printf ("\n(+) File have been opened successfully!\n"); for( i=0;i<=n-1;i++) { a = getc(fp); putchar(a-48); putchar('\n'); }[/CODE] For some … | |
Hello, I have installed apache server on Ubuntu 9.1 desktop. When I access http://localhost:8888 or http://192.168.1.60:8888, I get message : "It works". Now, I am able to run the apache on the port 8888 using the windows 7 without any problem and I accessed it from outside internet and that … | |
Hi, I have come up with the source code to read files. However, this is source code reads the file 1024 bytes at a time. I would like to modify the code to read it byte by byte. This code wants to determine if 001 bytes ( oo oo o1 … | |
Hi, I need to write a program to open a file in usb mass storage devive(pendrive) without using mount point.I used libusb API to open the device but how to open a file in that without knowing the mount point.Any API functions are there to open text file in that? … | |
I want to create a program that create a file and encrypt it and when the user click the file it will open the program and ask user for password and if the password is correct it will decrypt the file but not save the decrypt file and read the … | |
When I read in this file it reads in the entire line. [CODE] string filename ="f:\\date.txt"; FileStream f = new FileStream(filename, FileMode.Open); StreamReader stream = new StreamReader(f); int line; int[] array = new int[15]; for (int i = 0; i < 15; i++) { line = stream.Read(); // header line … | |
I'm trying to add a way to create scenes for my raytracer without having to recompile it every time. So far i've gotten the irrXML parser up and working. My xml file declares all the scene properties I need and i can get them into my raytracer, but my problem … | |
Hello i have a problem in my c# project. I have a windows form that saves values from textboxes into a csv file. I then open the csv file in a datgrid where i'm supposed to search in it and highlight or filter particular rows and that is where i'm … | |
Hi, I'm fairly new to ASP.NET with C# and I have created a GridView with a Checkbox template field which displays files in a directory on the server. I am wanting to use DotNetZip to allow the user to download selected files as a single zip file. Below is the … | |
Hi Perl guru's My name is Omer and i am almost new on perl i need help for below mentioned issue. Well, I have two files file A & file B file A have two columns and it looks like ColumnA ColumnB A 01 B 02 C 03 and File … | |
Hi you all, I have the following code to put a CSV file into a DataTable. [CODE=C#]// read CSV file private DataTable BuildDataTable(string fileFullPath, char seperator) { const int EOF = -1; DataTable myTable = new DataTable("MyTable"); DataRow myRow; try { StreamReader myReader = new StreamReader(fileFullPath); } catch (Exception ex) … | |
hello guys)) Advice please - how to set the stream encoding? (to read a text file) I use this code - [CODE] StreamReader stream1 = new StreamReader(fs); System.Text.Encoding code = stream1.CurrentEncoding; StreamReader stream2 = new StreamReader(fs,code); while ((i = stream2.ReadLine()) != null) { label1.Text = label1.Text + i; } stream2.Close();[/CODE] … | |
Hello. Can someone tell me why this doesn't work? [CODE] Public Sub LoadFile() Dim file As StreamReader Dim temp As String Try file = New StreamReader("C:\file.txt) temp = file.ReadLine() While Not temp Is Nothing Dim ListaTemp() As String = temp.Split(CChar(",")) ListBindingSource.Add(New Mod(CInt(ListTemp(0)), ListTemp(1), ListTemp(2))) temp = file.ReadLine() End While file.Close() … | |
Hi guys, I would appreciate it if you could give me sample code for linking two forms. I have a program which has 2 forms. I execute form1 first because it reads files and then writes to a file. Then I execute second form (form2) that will read the file … | |
i dont understand why i have that exceptions. All i try to do is to write a file . Kill an object and load the file :( it says: "Unable to read beyond the end of the stream." [CODE]using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Project1 { class … | |
Hello I want to make file hosting website. As like megaupload or rapidshare. How can I do this. I know how to upload a file, rename file, etc. Actually I need to know. How to prevent file or directory to access from un authenticated user. Please suggest what is the … | |
Hi, I need to write a program to open a file in usb mass storage devive(pendrive) without using mount point.I used libusb API to open the device but how to open a file in that without knowing the mount point.Any API functions are there to open text file in that? … | |
Hello all, I am working on a project where i save client machine path into my database. And if end user clicks download files button, then the files from ftp server have to be download in client machine directly. My application resides in web server. Please give me some suggestions … | |
Hello guys, I'm quite new to C++, I'm trying to achieve a task whereby i could read from a csv file and write to that same file and vice versa depending on the user's selection. This is what i did: [B]Here's the data already on file[/B] 1,Mickey,23,090,Girne,TRNC,465 2,Charles,23,090,Girne,TRNC,465 3,Species,23,090,Girne,TRNC,465 4,Moody,23,090,Girne,TRNC,465 … | |
Ok, my code for my Backup module works well via Copyfile. Here's what it can do (current): [COLOR="Red"]Backup my Database but using the date function as its filename Restore my backup file only if the filename is Database.mdb[/COLOR] Here's a screenshot of the prog: [URL="http://img262.imageshack.us/i/restore.png/"]http://img262.imageshack.us/i/restore.png/[/URL] and the backup files: [URL="http://img152.imageshack.us/i/backups.png/"]http://img152.imageshack.us/i/backups.png/[/URL] … | |
Trying to use [URL="http://mythreads.sourceforge.net/demo/"]MyThreads links manager[/URL] to update links on our front page without having to directly edit the code. Here is the page we're trying to include on the home page: [URL="http://www.ealantamagazine.com/links/index.php3?category=1"]http://www.ealantamagazine.com/links/index.php3?category=1[/URL] and here is the home page: [URL="http://www.ealantamagazine.com/"]http://www.ealantamagazine.com/[/URL]. Notice that the original page shows up but the area … | |
Hi guys, It's been forever since I did any programming, and came upon a project where a simple program would speed things up for me tremendously...Basically, I have a folder with thousands of text files in it and I want to add a block of text to the beginning of … | |
Hi I was trying to extract the content of a pdf file and display its content in android. I tired the code in java and it worked.But when i am coding it in android, its not displaying anything.I placed the file in assets folder and then used asset manager(not sure … |
The End.