6,015 Topics

Member Avatar for
Member Avatar for iwanttolearnc

[CODE]<?php $file = 'GPSserial.txt' or die('could not open file!'); $handle = @fopen($file, "r") or die("could not open file!"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); $GPSstr = $buffer; $GPSarray = explode(',', $GPSstr); if ( $GPSarray[0] == '$GPGGA'){ echo 'congrats'; } else{ // move to the next line …

Member Avatar for iwanttolearnc
0
161
Member Avatar for reminem

Hello everybody I made an personal form to upload files to different maps wich can be selected. I'm making an mistake, but I don't know how to fix this. There is no error only when the file is processed, the file isn't kept in the directory map wich was selected. …

Member Avatar for farhan386
0
274
Member Avatar for HoWS

I get error as below when I tried to start my Linux server. /data contains a file system with errors, check forced. Error reading block 77000497(Attempt to read block from file system resulted in short read) while doing inode scan. /data: UNEXPECTED INCONSISTENCY; RUN fsck manually. (i.e.; without -a or …

Member Avatar for kupolati
0
618
Member Avatar for ameyanatu

Hi Friends in my project i have to build file input tag to get pdf file from user. this pdf file should be store on my web server disc and path of the file should be store on database. Hey Guys Please Please Help Me. can any body give me …

Member Avatar for xxxservicexxx
0
223
Member Avatar for YasaminKh

Hi everyone, I'm working with a text file. I want to read a part of it into a string. Here is a sample: <MEAN method="jackknife">3.97e-06</MEAN> In the above line i want to put the number 3.97e-06 into a string. The code that i wrote can find the position of the …

Member Avatar for Kanoisa
0
116
Member Avatar for dansnyderECE

So, I've learned my lesson in the past. I'm not experianced enough to design a program from start to finish in an elegant way. I'm not looking for code in any way, just some code flow suggestions if anyone has any. This is what I'm trying to do: -Do a …

Member Avatar for Radical Edward
0
100
Member Avatar for ippomarley

[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; class ll{ public static void main(String[] a) { FileReader fr; try { fr = new FileReader (new File("C:\\University Study\\Component Engineering\\Assignments\\Assignment !\\yourFile.txt")); BufferedReader br = new BufferedReader (fr); String line = br.readLine(); while (line != null) { System.out.println(line); line = br.readLine(); …

Member Avatar for peter_budo
0
131
Member Avatar for judithSampathwa

hi there, I need to upload files to the mdf file in visual studio 2008 standard edition. the database table which takes the file data in to varchar datatype. i convert the data to byte and then save it in a varchar type field. the code is below for uploading …

Member Avatar for nick.crane
0
166
Member Avatar for Chosen13

Help please, I wrote a script in C++ for loading a map file, parsing it with XML, and outputting the objects in the file. The XML parser works great, but it won't open the file. I have it exiting if the file doesn't exist, and the file doesn't load, even …

Member Avatar for thelamb
0
249
Member Avatar for dansnyderECE

I'm attempting to manually load the hexdump of an elf file that I compiled using g++ into a processor simulation I designed. There are 30 sections to a standard elf file and I am loading all 30 segments with their proper memory location offset taken into account. I then start …

Member Avatar for dansnyderECE
0
138
Member Avatar for ksmadhuri

hi, i had done some coding ..im unable to get how to check the entered field is present in xml file or not...can anyone help me out....waiting for the reply..here is the code.. 1. package login; 2. 3. import java.io.*; 4. import javax.servlet.*; 5. import javax.servlet.http.*; 6. 7. import java.io.*; …

0
45
Member Avatar for Xufyan

Hello, I'm learning PHP from w3schools.com but they didn't explain everything clearly, see that page, [TEX]http://www.w3schools.com/php/php_file_upload.asp[/TEX] I want to know the meaning of this line , how it is checking the error in uploading ? [CODE]if ($_FILES["file"]["error"] > 0)[/CODE]

Member Avatar for vaultdweller123
0
81
Member Avatar for TrustyTony

I made this program during forum discussion for accessing configuration relative to module directory, not main program's position (which can be accessed by sys.argv[0]'s directoryname). As the thread is closed I post my proves as code snippet.

0
1K
Member Avatar for prashanth s j

Hi, I have got the following requirement: In a file that has many lines, i need to search for a particular line that has the word DTP. The line may be like this in the file: src 172.23.1.23 dst 192.14.2.34 DTP 0 - 65000 If the line with the word …

Member Avatar for Beat_Slayer
0
1K
Member Avatar for strwbry.coder

Good day, everyone. I am refreshing my c++ skills from a year break or so :$ I am having some troubles remembering on how to write to a file. I have the general idea down, but I am not sure what I am doing wrong. I would be much appreciative …

Member Avatar for mrnutty
0
202
Member Avatar for bryan69

hi, im trying to compare the md5 key of a file selected with the md5 key of known files stored in a text file. i can get the md5 key of the file selected and all & also read the text file line by line however, i cant seem to …

Member Avatar for NormR1
0
1K
Member Avatar for mindbend

Need to make a website for a school project. Decided to make a website like photobucket. I got every page read, but the only thing missing is the uploading part. Does anyone know where I can find some examples of uploading blobs? Or mayb someone can share one. The thing …

Member Avatar for mindbend
0
94
Member Avatar for sureronald

I wrote a python program that gets input from an input file. It works fine for small input files since after opening the file I did this to get the data [code=python] data=fPtr.readlines() [/code] Since readlines only takes the input data and packs it into a list, it is clear …

Member Avatar for mahesham
0
4K
Member Avatar for rashida11

Here is the list of scripts directories to submit your scripts,software to get more exposure.If you have developed new scripts,software then submit it to these script direcories. [url]http://www.scriptsdesk.com[/url] [url]http://gscripts.net/[/url] [url]http://www.allthescripts.com/[/url] [url]http://www.cgi-index.com/[/url] [url]http://www.cgiexpo.com/[/url] [url]http://www.allthescripts.com[/url] [url]http://www.scriptswave.com/[/url] [url]http://www.infoscripts.com/[/url] [url]http://scriptlisting.net/[/url] [url]http://scriptrank.com[/url] [url]http://www.best-php-scripts.com/[/url] [url]www.freephpdirectory.com/[/url] [url]www.slashscripts.com[/url] [url]www.phpscriptsearch.com[/url] [url]http://www.fileplaza.com[/url] [url]http://www.scriptsez.com/[/url] [url]http://php.resourceindex.com[/url] [url]http://www.hotscripts.com/[/url] [url]http://www.scriptaty.net[/url] [url]http://www.codango.com[/url] [url]http://www.webresourceindex.com[/url]

0
170
Member Avatar for Virangya

I am trying to upload a file into the server.. but its not working. im coding in mvc and this is the view file which contains the form data. <form id="frm" name="frm" method="get" enctype="multipart/form-data" action=""> <input type="file" name="file" /><input type="hidden" name="MAX_FILE_SIZE" value="2000000"/><input type="submit" name="upload" value="upload" /> </form> this is the …

Member Avatar for shubhamjain1
0
681
Member Avatar for Lapixx

Hi, I'm using a simple .htaccess file to use a custom 404 error page: ErrorDocument 404 /errors/404.php Inside this 'errors' folder, there is the 404.php file, and an image, which I want to include in the 404 page. Anyway, when I request a non-existing page from the root folder, everything …

Member Avatar for bigtalk
0
262
Member Avatar for happymadman

I have put some xml data in a file the python code below and have been trying to figure out how to get the data from the file add another "person" and then save to the same file again. [code=python] from lxml import etree from lxml.builder import ElementMaker E = …

Member Avatar for happymadman
0
229
Member Avatar for tungnk1993

Suppose I have two laptops connecting to the same router. If I want to transfer file btw them, how can I do it ? tks b4hand.

Member Avatar for rch1231
0
146
Member Avatar for dchunt

I have a file over 100 Kb long. I want to perform operations on successive batches of 256 characters. [CODE] int fs=0; char ss[32556]; ifstream nm,nm1; nm1.open("as86.txt"); if(nm1.is_open()) { nm1.seekg(0, ios::end ); fs = nm1.tellg(); } nm1.close(); nm.open("as86.txt"); nm.read(ss,fs+1); nm.close(); cout << endl << fs << endl; ofstream mn; mn.open("as86.txt"); …

Member Avatar for nbaztec
0
106
Member Avatar for Grep

Hey guys, Hope I'm not posting into the wrong section. I think I have something very simple that i'm having a lot of trouble with. I have a text file called "file.txt" It contains: TagString=V3,SCC-COM,WXF1A20V0556,WXE1A2071007,PREBI TagString=V3,SCC-COM,WXK1A1045668,WXG1A30F3909,POSTBI TagString=V3,SCC-COM,WMAYP0002467,WMAYP0002769,BI I want to run a batch file that'll parse the 1st & 2nd …

Member Avatar for Grep
0
189
Member Avatar for hashtable

Hi all, firstly I'm new here and my English is not perfect but I think it is not important :) I have web page where user can upload file. He can select which file to upload with standard HTML input of type file. I want to add this feature: when …

Member Avatar for vani.golakoti
0
583
Member Avatar for Zhoot

Heya. I require assistance regarding one of my Java programs. As the program is rather large I'm unable to post the source. The problem, My program will not start once I try to execute the Jar file associated with the program. Platform, Netbeans IDE 6.8 Description, I've written this program, …

Member Avatar for NormR1
0
101
Member Avatar for Grep

Hey guys, quick question, I'm a beginner and put together a grep script that searches for certain content within text files in a directory. The result yields over 600 lines so i want to put them in a file called file.txt. [CODE]opendir (DIR, ".") or die "$!"; my @files = …

Member Avatar for Grep
0
211
Member Avatar for prashanth s j

Hi all, in a python script file, I am having a open statement and then i write a "50000" to that file. And then within the script i am writing a scp command that transfers the file to a remote machine. In the local machine if i check the file …

Member Avatar for prashanth s j
0
145
Member Avatar for ibrahim72ro

I need to create a bynarytree of which information of a node is made of ISBN and price fields, data kept in a structure (book). I write in a .txt file : ISBN=10 Price=100 ISBN=13 Price =1 how can i populate the bynarytree with this informations, from the file? example: …

Member Avatar for Ancient Dragon
0
141
Member Avatar for n3wbie

I have a insanely large file that has a lot of customer data in XML format. The start of a customer <CUSTOMER> and end </CUSTOMER> are how I'll determine the starting and ending points of the customer data I need to extract. The <DOC_NUM> is the number I'll be searching …

Member Avatar for Oxiegen
0
65
Member Avatar for Tyrone.Wilson

I have a program in which I have used a .myFileType file. obviously windows does not recognise the file type and so I have to browse for the file in the application. how do I make it so that windows knows .myFiletype's native application and launch the application on double …

Member Avatar for NormR1
0
145
Member Avatar for beaverkill

I have a working cpp file, lets just say it performs a+b, the filename is abc.cpp. I want to call up that file, function, in another file without having to rewrite the code and simply call up the function in another cpp file, xyz.cpp and simply map my variables over …

Member Avatar for n30h4x
0
7K
Member Avatar for djm123

I have a SD card with Files that got changed somehow from MP4 to JPEG...I have tried altering the suffix and it seems like they wont play. Does anyone know of any FREE program or way to correct this so I dont lose my movies?

Member Avatar for Biker920
0
394
Member Avatar for vmaxusb

Hello, I have made client server communication and I am sending and recieving Files. I am using file pointer and fread and fwrire commands to read and write file. I am able to read and write .txt,.GIF files.but I could not write .doc file. I am opening file in binary …

Member Avatar for victorxstc
0
250
Member Avatar for JokoPrincess

Hi, Okay, so a while ago I had the free AVG but I forgot to update and I eneded up catching a virus. It locked me out of my Task Manager and out of my readit files and nothing I do will turn it back on. Onto of that I …

Member Avatar for rch1231
0
167
Member Avatar for dansnyderECE

I'm trying to fill a string with the name of a file stored in a "fake memory" vector. Assuming I have a start pointer that directs me to the beginning of the string in my memory and I know the string completes with a NULL, how do I do this? …

Member Avatar for Murtan
0
71
Member Avatar for bymak87

I had to write 10 objects of cars into an array and now my problem now is writing the array into a text file. I am able to get the correct output in the console, but when I open the text file I get part of the desired output, as …

Member Avatar for JamesCherrill
0
231
Member Avatar for BastardAle

I keep getting this error with FrontPage when I try to open an .htm file. The error is something to the affect of, "Couldn't open file C:\Document and Settings\blah\blah\blah.htm". They appear as regular Internet Explorer Icons and will open in I.E. but when I right-click>open with>FrontPage, I get that error …

Member Avatar for Frankothemounta
0
410
Member Avatar for cokaznsyco72

Does anyone know how to do file input and output with spreadsheets? Specifically I'm going to be using the open office spreadsheet. thanks

Member Avatar for cokaznsyco72
0
109
Member Avatar for kdcorp87

i have a c# application which is use for from design, it creates .kd file on save option , After running application i have to browse my saved files and open them in my application. but i want a way that that a click on file with .kd extension will …

Member Avatar for kdcorp87
0
111
Member Avatar for IsaB

Hi, I am new at this... I am trying to display data from a text file to a JSP file and I'm using BufferedReader to do this but having problems getting to the file. Which directory should I put the text file? Should I add anything to web.xml to reference …

Member Avatar for parry_kulk
0
565
Member Avatar for kelokely

I have a list of files of similar format. I want to extract all lines form each file that are containing exact character for example I need to extract only lines with TPO and saving to another file also I need to extract only lines with HOH and saving to …

Member Avatar for baki100
0
119
Member Avatar for emmonssw

Basically, after the user inputs a cvs file which is formatted like (unmod.cvs that is attached is complete file): Source, Native ID, Index, Charge, Cluster ID, FDR, Precursor Mass, Calculated Mass, Mass Error, Peptide, Mods, Search Scores /tumor/set2/mam_082208o_individualsamples_747T_set2_082008_A01,scan=771,770,2,46,0,1162.436,1162.438,0.001953125,NDDDEEEAAR,,(mvh 52.0926)(mzFidelity 69.9226) /tumor/set2/mam_082208o_individualsamples_747T_set2_082008_A01,scan=1147,1146,2,93,0,1436.543,1436.506,-0.0369873,AAEDDEDDDVDTQ,,(mvh 68.8836)(mzFidelity 92.7468) *note that the mods value is a …

Member Avatar for emmonssw
0
192
Member Avatar for mona_j05

i have 10 data notepad files (with column x= 1 to 5 and column y = some random number) x y 1 12 2 13 3 8 4 6 5 2 i want to multiply the 1st file's second column with 3, and save it as new data file Increase …

Member Avatar for mona_j05
0
179
Member Avatar for dzk

My program performs a search on a specific directory and returns a list of files with specific criteria. When the user selects a file name in the list and Clicks the button, I want the program to open that file and print it. I have two functions - one store …

Member Avatar for Pacman21
0
86
Member Avatar for Drugarce

Hi, I am new in assembly and i nave some problems. I am working on some project for school i should read text from .txt file. The problem is that i don't now how to get the number of chars contained in .txt file that i need to store in …

Member Avatar for NotNull
0
6K
Member Avatar for sdhawan

Hi Guys , I am trying to load a xml file as follows and i am getting file not found exception even though the file is on the desktop.I have checked the file name and extension they are correct , can anyonehelp please [code] private void button1_Click(object sender, EventArgs e) …

Member Avatar for CFusion
0
113
Member Avatar for Sw8Lala

hi every one, I am making KBC game in C++. To store questions and its options in a file, I am unable to write successfully the character string of question in the file due to spaces between question. So,can anyone tell me how to write a character string having spaces …

Member Avatar for Sw8Lala
0
171
Member Avatar for igalbk

Hi all. I attached a code creating file from datatable. I have a problem saving Excel file in c# using Microsoft.Office.Interop.Excel. When I'm saving the file as Exsel 2003 (xls) format the file is OK. When I'm saving the file as Excel 2007 (xlsx) format I get error massage from …

Member Avatar for igalbk
0
334

The End.