6,015 Topics

Member Avatar for
Member Avatar for emmstarr82

I know there are several related threads, but a lot are more advanced than what I'm trying to do. I swear, I've looked at ALL of them, on many different forums. I'm in a 2nd year Java class in college, professor is not the best...I've read the book, Googled for …

Member Avatar for emmstarr82
0
3K
Member Avatar for Mufleeh

Hi all, I am in process of creating a simple polling system. I am using text files to store data. My question at this point is that I will be having a id number in a given .txt file. I want to compare this number with what user input at …

0
49
Member Avatar for veeresh_cm

Here I am searching a string in text file and replacing it with new string. In this code it finds but the new word wrights at the end of the text file and not replacing. Plz. can anybody help me..... [CODE]#include<stdio.h> #include<conio.h> #include<string.h> void main() { FILE *fp; int f=0,l,n=0; …

Member Avatar for TrustyTony
0
314
Member Avatar for pro_learner

I want to browse & upload file to a folder.How can i do that in java.I can browse for a file.This is the code that i used.... [CODE] JFileChooser chooser = new JFileChooser(); chooser.showOpenDialog(null); File file = chooser.getSelectedFile(); String filename = file.getName();[/CODE] Plz tell me how to upload a file …

Member Avatar for JamesCherrill
0
538
Member Avatar for AltF4me

Hello, I'm making a networked client/server program (with a reverse connection, i.e. server connects to the client). I'm wanting to take a screenshot(server side) and transfer this file over to the client so that it can be saved. Now before I go any further, the code I'm about to disclose …

Member Avatar for AltF4me
0
3K
Member Avatar for rjcenteno

okay i came up with some code that reads in a file, and on the file are names of shapes and their widths/lengths. after the file is read in, it tokenizes whats in the file, it then calculates what shape it is and then takes the information and calculates the …

Member Avatar for rjcenteno
0
182
Member Avatar for selma_aktra

Hello! I write a command line program with java on eclipse. I use this code to get a sound from the beep.wav file. But i can not hear anything from the eclipse. [CODE]try { File curdir = new File ("."); File soundFile=new File(curdir.getCanonicalPath() + "\\beep.wav"); Clip clip = AudioSystem.getClip(); AudioInputStream …

Member Avatar for selma_aktra
0
235
Member Avatar for jiraiya

Hi all, I'm trying read in the contents of a series of text files located in a folder in the same directory as a jar file. I've been trying to work out how to do this for a while now, but to no success, so any pointers as to where …

Member Avatar for JamesCherrill
0
15K
Member Avatar for manzoor.ilahi77

Please help me on this file upload. [CODE] <form id="form_2" action="files_upload.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="50000000"> File:<input type="file" name="file" class="input" maxlength="350"" /><br /> <input type="submit" name="submit" value="Upload File"> </form> [/CODE] [CODE]<?php if(isset($_POST['submit']) && $_FILES['file']['size'] > 0) { $fileName = $_FILES['file']['name']; $tmpName = $_FILES['file']['tmp_name']; $fileSize = $_FILES['file']['size']; $fileType = $_FILES['file']['type']; …

Member Avatar for sv3tli0
0
553
Member Avatar for XodoX

Ok, I want to read integers from a text file...a large sum of integers. The input is a regular text file, where each line is terminated with an end-of-line character. The file is gonna contain any valid ASCII symbol between 32 and 127. A number of strings ( no negative …

Member Avatar for raptr_dflo
0
1K
Member Avatar for Nox_1031

So I need emergency help in writing a program that does a few simple things. I have a file that is composed of positive, negative and zero integers. Each integer has its own line and I'd say there's about 100 lines. I need help writing a program that will 1. …

Member Avatar for Nox_1031
0
233
Member Avatar for xellos

ok i have a perl script [CODE]use strict; use warnings; open(my $in, ">>", "log.txt") or die "cant open log.txt $!" ; my @files = <*>; foreach my $file (@files){ print $in $file . "\n"; } close $in or die "$in $!";[/CODE] it gets the filenames that are in the same …

Member Avatar for d5e5
0
150
Member Avatar for VitiumExMachina

Hey guys, I'm having a problem with uploading files to a remote server. I just want the visitor to be able to upload a file, and have it go into the uploads directory of my website. My website root is "C:\tomcat\webapps\ROOT", and the uploads directory is at "C:\tomcat\webapps\ROOT\uploads". Both "upload.html" …

Member Avatar for luddite
0
200
Member Avatar for sal21

I use the tipical function: .... Open file For Input As #1 ... ecc... to reading txt file line by line. But instead to init the redaing line by line... 1) I need to find, in position mid(line, 1,8), the string INIT0000 and strat the reading of lines from here …

Member Avatar for SpiritualMadMan
0
184
Member Avatar for dharma117

[B]Hifriends,[/B] I want to create registeration page with file uploading by use of servlet and jsp

Member Avatar for anand01
0
71
Member Avatar for chris_j_haines

Hi I have an occasional problem with the following scripts Here is the file upload form [CODE] <?php session_start(); if(isset($_SESSION['username']) == false){ header("Location: login.php"); exit(); } if(($_SESSION['userlevel']) != 'admin'){ header("Location: login.php"); exit(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> …

Member Avatar for stoopkid
0
178
Member Avatar for efigen

I have been trying to write this code that calls a text file in the command line, it then reads the file and if the file has integers that look like this (1+2+3+5)it takes there sum and outputs it into a different text file, if it looks like this (1+2 …

Member Avatar for WaltP
0
153
Member Avatar for Sariscos

[ATTACH=RIGHT]21862[/ATTACH]I was rather excited when the iTwin came across my desk. It came in a very small package, but you know what they say, “good things come in small packages.” To my delight, this device happened to be a very good thing. I found this device to be perfect for …

Member Avatar for jingda
1
379
Member Avatar for SilentCoder

Hi, i am trying to merge Folders into File.extension and i was wondering how would i be able to do this. Basically i am trying to merge all files in a folder to one File.extension, for example: i have folder called Client, i have few files in Client folder: Notice.inc, …

Member Avatar for raptr_dflo
0
183
Member Avatar for kylelendo

Hii friends Well i am working on hex values of a file.Now to test it i delete single byte and then try to write the file using the remaining bytes.Well the file gets corrupted but still the file is constructed. So is there any code with which i can test …

Member Avatar for Teme64
0
944
Member Avatar for Soulreaverx7

I have to get this program to read from a text file and write the data to another text file. The problem i'm having is the format. It's typing everything on one line [CODE]#include "stdafx.h" #include <iostream> #include <fstream> #include <iomanip> using namespace std; //reading data from a file int …

Member Avatar for mrnutty
0
138
Member Avatar for kaizokupuffball

Hi! I got this image uploading script that will upload the user's choosen picture, and save it in the user's folder with the users nickname. Now, when i got the picture uploaded i want to resize it to 3 exact sizes (3 versions of the image). 240x250 and 2 other …

Member Avatar for kaizokupuffball
0
402
Member Avatar for murderotica

I don't really know where to post this thread but since my code in creating the firmware is in c, I'll try my luck here. I have an application that basically appends all files (u-boot, kernel, rootfs, etc.) into one bin file which forms my firmware file. I'm having a …

0
56
Member Avatar for shadar12

I am having trouble installing/dowloading not sure which that started earlyer today. best i can remember i opened my laptop and i had closed it with age of empires online still runing. i alt esc and closed it but it wouldnt run. i went threw and delited it and windows …

Member Avatar for shadar12
0
246
Member Avatar for jackfriendstie

What I want, is for my text file to be read into the array named "CFiles()". Then once this is complete to delete the file But I get the error, The process cannot access the file 'C:\Users\Andrew\Desktop\New.txt' because it is being used by another process. On 3rd to last line. …

Member Avatar for codeorder
0
2K
Member Avatar for Skrell

I can't seem to find this answer anywhere. All i want to do is write a list of numbers to a file using the file.write() method however i wanted to format the numbers as if i had been using a print statement. When you print you can use %0.2f for …

Member Avatar for markfw
0
230
Member Avatar for duder

[CODE] Dim sw As StreamWriter Try sw = File.AppendText(CurDir() & "\deskimages.txt") sw.Write(TextBox1.Text & " " & TextBox2.Text) sw.Flush() Catch exc As Exception MsgBox(exc.Message) Finally If Not sw Is Nothing Then sw.Close() End If End Try Dim tw As IO.TextWriter tw = System.IO.File.CreateText(CurDir() & "\profiles2\" & TextBox1.Text & " " & …

Member Avatar for Pgmer
0
106
Member Avatar for winecoding

I have a csv file or an excel file, which is a mix of numerical values and text information. For instance 1 Paragraph1 2 Paragraph2 In this file, the cell of (first row, first column) has a numerical value of 1; on the other hand, the cell of (first row, …

Member Avatar for WaltP
0
113
Member Avatar for alimziyan

Hi I am using a php script for converting avi,mpeg files to flv with ffmpeg.my code is [CODE]$srcFile = "uploads/flame.avi"; $destFile = "uploads/flame.flv"; $ffmpegPath = "/usr/bin/ffmpeg"; $flvtool2Path = "/usr/bin/flvtool2"; $ffmpegObj = new ffmpeg_movie($srcFile); $srcWidth = 320; $srcHeight = 240; $command = $ffmpegPath . " -i " . $srcFile . " …

Member Avatar for alimziyan
0
170
Member Avatar for coolbeanbob

Hello Everyone, I am working on a program that will write random numbers to a file. I am getting the following error on line 31 of the filer.cpp file. "error: no match for 'operator<<' in 'outstream << srand((( srand(((unsigned int)time(Ou)))'" I believe the code used to generate the random number …

Member Avatar for coolbeanbob
0
208
Member Avatar for ashking

Hi I am quite new to php programming but I have started a new personal project which I need a bit of help/advice on it please. This piece of code randomly picks a line within the file: rand.php [CODE]<?php $filename = 'file.pwf'; $how_many_to_show = 1; if ($fileContents = file($filename)) { …

Member Avatar for pritaeas
0
132
Member Avatar for Nahiyan

Hello, I am storing my mysql connection data and other sensitive information in a config file, however I detected an issue that anyone can access that file and view the contents of that file but I don't want to let anyone do that without appropriate permission. I can encode the …

Member Avatar for eXpertPHP
0
130
Member Avatar for DaveTran

Hi folks, I was wondering how I can differentiate between file types when using OpenFileDialog. I would like to be able to have the option to load different file types (as denoted by the Filter property) and handle each type in a different way. For example [CODE] Stream stream; OpenFileDialog …

Member Avatar for DaveTran
0
230
Member Avatar for Nahiyan

Hi, I have used this code to make a php file with php code in it: [CODE]<?php $fn = 'connect.inc.php'; $string = "<?php $mysql_host = 'localhost'; $mysql_user = 'root'; $mysql_password = ''; $mysql_database = 'main'; @mysql_connect($mysql_host, $mysql_user, $mysql_password) or die("There was an error connecting to the server"); @mysql_select_db($mysql_database) or die("There …

Member Avatar for cereal
0
145
Member Avatar for rakwel10

Pls help me find the problem. All input fields work except for the upload. It doesnt take the file to directory I want. I have error scripts in case there's an error but alert errors are not popping, I dont know why... Help... [CODE] if(isset($_POST['submit'])) { $upload_errors = array( UPLOAD_ERR_OK …

Member Avatar for adkhan
0
139
Member Avatar for Dragonbaki

Hi guys., I have trapped in a very critic situation. I need to upload files without any restriction of file size. I have a uploader developed using Flash and PHP. I have changed the settings in php.ini as follows upload_max_filesize = 100M post_max_size = 128M memory_limit = 512M max_execution_time = …

Member Avatar for Dragonbaki
0
167
Member Avatar for sfrider0

How do you open a file from the root directory without have to type the complete path like C:\folder\subfolder\file.txt? I have [code] System.Diagnostics.Process.Start("file.txt"); [/code] It works fine when I type in the whole location but I need to send this file to another computer and it won't be in the …

Member Avatar for humar
0
249
Member Avatar for mikeybware

I am trying to use WebClient to download a .zip file from my server. In debugging mode the code works perfectly, but when I deploy my software the file does not even begin to download. After my program checks to see if an update is available, it should download the …

Member Avatar for mikeybware
0
320
Member Avatar for needpython_help

Hi everyone, I'm new here so I hope I've put this in the right place. I'm looking for a little help with a python program I've written. I'm trying to create a timeline from SQLite databases. I take information from a calls database, then an sms database, write those to …

Member Avatar for Enalicho
0
859
Member Avatar for Uma_CSPL

I am opening a file in read mode and reading continuosly after a time interval from 9AM to 4PM. Two problems exist: (1) Few lines from the file have been missed for certain time interval alone, able to read the contents after the missed lines. (2) Continuously checking the file …

Member Avatar for Anuradha Mandal
0
108
Member Avatar for kylelendo

Hii Friends I have written a vb code in which i can call an external application using shell command "Shell("C:\\abc.exe")" Now when i call this command it avtually executes this command. But what i want is some command where i dont want to run the file but make sure that …

Member Avatar for Oxiegen
0
159
Member Avatar for Member24

Hi, I recently started working using awk. I am facing a problem to traverse a file row by row. I have a file test.txt which has 2 fields filename and action. test.txt -------- /tmp/a.txt|Action1 /tmp/b.txt|Action2 /tmp/c.txt|Action3 I need to check for the existence of file ($1) in the above file, …

Member Avatar for JeoSaurus
0
247
Member Avatar for kayoh

Hey guys, I working on an assignment in which I have to write binary/hex to a file. More specifically, I have a variable that holds a memory address that needs to be written to the file big endian but every time I try to write it, python being python treats …

Member Avatar for kayoh
0
204
Member Avatar for 3pointshooter

Below is a logfile from hijackthis. I have been getting messages form Google on a website I maintained about "automated queries" so cannot use the search. Google suggested to use hijackthis and have someone with experience review the log. Logfile of Trend Micro HijackThis v2.0.4 Scan saved at 10:12:06 AM, …

Member Avatar for jholland1964
0
190
Member Avatar for Cranial Fool

Hi all, A developer has provided me with some scripts that display clusters of markers and info windows on a Google Map (v3 API). The markers side of things works well but there is a problem with the info windows. Unfortunately I didn't notice until after I paid him and …

Member Avatar for Airshow
0
216
Member Avatar for g_amanu

my excel files have more than a 1000 numbers under the columns that are labeled x, y, z for each excel file. i was trying to print the x, y, and z values for all of the excel files in to a single excel file(Trying_excel.xls)that would have all of the …

Member Avatar for g_amanu
0
2K
Member Avatar for g_amanu

im trying to calculate the average and std for x, y, and z column for about 50 excel files that i saved in a folder. each excel files has x values in the first column, y in the second, and z in the third column. im using this script, but …

Member Avatar for Gribouillis
0
1K
Member Avatar for seamus400

I've found some similar posts on opening different files with the same file stream but they are difficult to understand. I'm trying to figure out for a larger project why I can't use the same file stream as in this example and what an alternative solution may be. And yes …

Member Avatar for seamus400
0
4K
Member Avatar for wannasee

[B]I simply want to be able to delete a file via ftp.[/B] What irritates me is, it is so easy to upload a file but so much harder to delete a file. Please offer a simple way to delete a file over FTP using visual basic Thank You in advance …

Member Avatar for wannasee
0
61
Member Avatar for wonderingmind

I am having an issue with my decryption out.txt file. I have gotten the program to open the input file in note pad and encrypt. to an output text file but when I try to decryp to an out text file it doesn't do anything. I figure I am missing …

0
127

The End.