7,373 Topics

Member Avatar for
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
943
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 Demetrio.pepi

Hello. My whole code is bellow and I getting the error message: {"responseData": null, "responseDetails": "Suspected Terms of Service Abuse. Please see http://code.google.com/apis/errors", "responseStatus": 403}. Do you have some suggestion? [CODE]#include <fstream> #include <vector> #include <iostream> #include <sstream> #include <string> #include <stdio.h> #include <stdlib.h> #include "/usr/include/curl/curl.h" #include "/usr/include/curl/easy.h" size_t write_data(void …

0
73
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 MasterOfNothing

We have a problem similar to [URL="http://forums.techguy.org/all-other-software/947576-solved-java-applets-only-working.html"]this[/URL] Clean boot doesn't help and the unchecking of services doesn't help ether. We have a Java applet that's working correctly on xp but isn't working correctly on win 7. The applet runs and the browser asks you to accept the certifiket but the …

Member Avatar for MasterOfNothing
0
331
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
112
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 ninjatalon

I've created this application for some clients and for some odd reason it is not working for 1 of my clients. its seems to download a file no problem using this code [CODE] Dim request As FtpWebRequest = Nothing Dim response As FtpWebResponse = Nothing Dim respstrm As Stream = …

Member Avatar for ninjatalon
0
177
Member Avatar for Srcee

I'm writing an application in C#. I already have not empty .xml file but I want to add new values in it, without deleting some old. I have tried these codes: First: [code=c]FileStream docNewUser = new FileStream(@"C:\\MyApp\\MySubDir\\Data\\" + pr + ".xml", FileMode.Open); XmlTextWriter xmlNewUser = new XmlTextWriter(docNewUser, null); xmlNewUser.WriteStartDocument(); xmlNewUser.WriteStartElement("RootEl");//root …

Member Avatar for hericles
0
166
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 matleeds

Hi, I'm using Windows Vista, I have Apache HTTP server 2.2 running and am using PHP 5.2.17. I’m having a problem remotely running a php script on the web server. I run this script locally below… [CODE] <?php $file = fopen ("http://localhost/Epointment/testphp.php", "r"); if (!$file) { echo "<p>Unable to open …

Member Avatar for matleeds
0
248
Member Avatar for h.senan

Hello Guys! I am suffering with xcode compiler while i am compiling the below code. At first the problem was on getch( ) and ungetch ( ) , then I have been advised to use getc/fgetc Now the error massage is: error: expected identifier or '(' before '{' token Thank …

Member Avatar for Narue
0
515
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 DaveSW

[B][U]Settings to connect a Cisco 7960 handset running SIP firmware to SIPGATE UK[/U][/B] [B][I]Moderators: I actually came on here to post these settings on the blog I used to have on here but which seems to have disappeared, so I'm dropping this in here in the hope these settings will …

0
206
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 restrictment

Hey guys, I need a really simple code for chatting across consoles. I have looked up many tutorials on how to do this, yet they all seem to fail. All I want is a VERY simple chat that sends data from the client to a file, and then receives the …

Member Avatar for restrictment
0
1K
Member Avatar for dreadiscool

Hi everyone. I have a web server that I wrote in C#, and it serves HTML documents pretty fine. The code is a bit messy, and I'm going to clean it up, but my main question is how to handle POST when submit buttons are used in HTML? Thanks! This …

Member Avatar for thines01
0
3K
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
126
Member Avatar for jhopwood

Having some issues figuring out how to code my add, modify, search, delete, and save buttons in my program. The buttons need to also adjust the size of the array once I add or delete the an item. Any help would be great. I may be going about this the …

Member Avatar for NormR1
0
329
Member Avatar for ivan3510

Hi! I want to check if some file on some other server exists. I have this code (but something is wrong with it): [CODE]<?php $notworking=array(); $false=0; $link="http://uploads.mp3songurls.com/"; $files=glob("genre/*.xml"); foreach($files as $file){ $xml=new SimpleXMLElement($file,null,true); foreach($xml as $info){ if(fopen($link.$info->link.".mp3","r")==false){ $false++; $notworking[$false]=$info->name." => ".$info->author; } } } if($false>0){ $file=fopen("notworking.txt","w"); for($i=1;$i<=$false;$i++){ fwrite($file,$notworking[$i]."\r\n"); } fclose($file); …

Member Avatar for ivan3510
0
212
Member Avatar for sathya88

hi, am try to create a simple jar file... i got some error to run that jar file error =" Failed to load Main-Class manifest attribute from bala.jar" my code: [CODE]import javax.swing.JOptionPane; public class hello{ public static void main(String args[]){ String s= JOptionPane.showInputDialog("enter name plz...."); JOptionPane.showMessageDialog(null,"hello "+s); } }[/CODE] here …

Member Avatar for sathya88
0
159
Member Avatar for senator22

I am relatively new to C++ programming but conversant with C# programming. I am currently working on connecting to Avaya Aura Contact Centre RTD tables. The issue I am having is that the compiled software download from Avaya website connects to the server and download data to the console screen, …

0
163

The End.