7,373 Topics
![]() | |
I been trying to import the list in the text file to the word doc, the thing is, is that I can only get the last line on the text imported while I'm missing the rest of the top. Can somebody help please? [code] import java.util.Scanner; import java.io.*; import java.util.*; … ![]() | |
Hi all! I've been searching the internet and various C++ books for quite some time now, and I appear to have reached a brick wall. As suggested in a given algorithm written by my professor, during input validation, if the stream goes into failure, I am to "reset cin" followed … | |
hey im just wondering like how would i make it die when its not application/ocet-stream? [CODE]$ip = $_SERVER['REMOTE_ADDR']; $files = $_FILES["file"]["tmp_name"]; $file = rand(10,100) . $_FILES["file"]["name"]; if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } … | |
in html body <form method="get" action="MovieTiming.jsp"> <table cellspacing="0" cellpadding="0" border="2" style="width:50%; height: 400px;" bgcolor="pink"> <tr style="height:4px;"> <td id="Date" colspan="5"> Please input date (yyyymmdd)<input name="Date" type="text" size="8" maxlength="8" value="<%=date%>"></input> <button type="submit" value="Submit">Get Movies List</button> </td> <td> <button onclick=fileWrite();>save file</button> <input type="file" id="loc" name="loc" >[/B]</input> </td> </tr> <tr bgcolor="white"> <td id="output" colspan="10" … | |
My VB code has macros which imports a tab seperated text file selected by user into a standard excel template(work sheet). The import to excel is done by query tables. When the text file is chosen thru dialog box and resp commnad button is pressed, the handler opens the excel … | |
Hello, I am having some trouble traversing backwards through a double linked list. Basically this program pulls words from a text file (I have attached the file I am using), corrects the words and stores them in an array of pointers (one pointer per letter of alphabet) of double linked … | |
This is probably a basic question I have put another hard drive into my computer, is there a program that is available for me to only move certain files over too the new hdd, rather than clone the lot or copy and paste into the hdd many thanks to anyone … | |
Hi all, I want to read a properties file from the same directory as my program, e.g. my program is in C:\WorkSpage\Myprogram.java and I have a properties file called index.properties how can I read the file, without specifying a path? I have tried the following but it doesn't read the … | |
I would like to convert DMG files to ISO. Can anyone help. I use a MacBook | |
I have this simple program. I created a file called input.txt containing a list of names and I want to read from it. I have two versions of the program. The first one only gives me the first letter in the file and nothing else. The second one does not … | |
Hi, I have two things that if I can do one I won't need to do the other, so whichever is easiest you guys answer me either way. What I am trying to do is get text from an email and download it into a text file on my computer. … | |
Hi I'm trying to compare two files names using the function given below. The files to be compared are named as xxx_yyy_abc_def_.rtf && xxx_yyy_abc_def_.html The extentions and the underscores are removed from the file names and then stored in two different arrays. So the file names stored in arrays are … | |
Hello All, I have very basic knowledge of C and I'm trying to write a program to read a single line from an ASCII data file which has following format " 1337936.4550 6070317.1261 1427876.7852 APPROX POSITION XYZ" The problem is the position of line is not fixed. Its different in … | |
hi I am trying to write into a file which already has something in it. like for example i have x y z in the file and if i want to put k after x,y and z like x y z k. my code goes this way [code=c++] int main … | |
ok, i have a question say i have a class that wraps all file accesing functions ( basicly opening, reading and closing ) all these file handling functions throw a FileException exception i have a try block in that i open, read and close my file using the above mentioned … | |
i have acode that upload file from client to web server but i need to insert the file name into DB (mysql) to get it in download list............HOW? this is jsp code <%@ page contentType="text/html;charset=windows-1252"%> <% response.setContentType("text/html"); response.setHeader("Cache-control","no-cache"); String err = ""; String lastFileName = ""; String contentType = request.getContentType(); … | |
Hi to all. I need help. Quick and easy question. Is it possible to randomize and than delate stream of character pairs(one by one) from the input file? How can I do that? The input is a stream of character pairs that represent playing cards. For example: 2C, 3H, JH... … | |
![]() | Hi, I need to resolve this problem: Is there any way, how to replace currently runned application with a new version? Like through uninstallation, when uninstall.exe is removed by itself. I have dialog with AutoUpdate in my application. It's small application so I don't want to make another autoupdate.exe file. … ![]() |
Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 9:52:17 PM, on 1/25/2008 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Boot mode: Normal Running processes: C:..WINDOWS..System32..smss.exe C:..WINDOWS..system32..winlogon.exe C:..WINDOWS..system32..services.exe C:..WINDOWS..system32..lsass.exe C:..WINDOWS..system32..svchost.exe C:..WINDOWS..System32..svchost.exe C:..Program Files..Common Files..iS3..Anti-Spyware..SZServer.exe C:..WINDOWS..Explorer.EXE C:..WINDOWS..system32..spoolsv.exe C:..Program Files..Digital Media Reader..shwiconem.exe C:..WINDOWS..system32..spool..drivers..w32x86..3..hpztsb09.e xe C:..Program Files..Common Files..Real..Update_OB..realsched.exe … | |
Q:The genome of an organism is inscribed in DNA, or in some viruses RNA. The portion of the genome that codes for a protein or an RNA is referred to as a gene. Those genes that code for proteins are composed of tri-nucleotide units called codons, each coding for a … | |
So finally after a little waking up i fixed my write to a file in raw binary problem. Now I am trying to load the same data from the file i created. Here is the code I came up with. [CODE]#include <fstream> #include ".\vertexs.h" using namespace std; int LoadVerts(char *s_fName, … | |
I am having an issue with IE opening by itsefl and also something that pops up that says Update.exe. I have 3 gigs of ram and plenty of HDD space and it has been defragged. Here is a Hijack this log from the newest one: Logfile of Trend Micro HijackThis … | |
can any one tell wat r de technique used to search a file in other node using bluetooth file sharing in mobile phone (how the searching technique or methodology used) | |
Whenever I'm trying to start bind following error is showing (in webmin): [CODE]Failed to start BIND : Starting named: Error in named configuration: /etc/named.conf:3: change directory to '/var/named/chroot/var/named' failed: file not found /etc/named.conf:3: parsing failed [FAILED][/CODE] and my bind configuration is: [CODE]options { pid-file "/var/named/chroot/var/run/named/named.pid"; directory "/var/named/chroot/var/named"; auth-nxdomain no; /* … | |
Hello all, I have got a file that has the informations like this is in a tab delimited form. Chromosom_id fstart fstop Count 1 105 1 14.5 1 105 1 14.5 1 105 1 14.5 1 813 797 4 I would like to get the fstart and fstop and use … | |
Actually i need to save the file's name in file menu history whenever we close the application from filemenu's exit button.Whenever i close the application from windows close button the entry is coming to file menu but when i close from file menu exit it should make an entry to … | |
Please help me file name and folder name when upload by by browser Folder and file name it does not array .. A B C-Z or 1-9 ..please help me to fix this problem... Really thanks the cause is when i moved to new hosting it happen like this problem … ![]() | |
Hello, I am having trouble creating a double linked list within an array of pointers. Right now actually, I am just trying to make a linked list. Line 267 is where I get a complier error. I understand the error (cannot convert `std::string' to `wordList*' in assignment ), but I … | |
I'm running AMD, XP Service Pack 1 Compiling with a .cpp extension using Borland Bcc32 I'm trying to teach myself how to use File Mapping. This is just the pertinent parts of my program. Any file can be used for lpstrFile. I'm presently using a .txt file for testing, but … | |
I am doing a quiz where the user can choose from 3 different quizzez. My tutor told me to use binary files to store the questions. I have succesful done this. The answers are stored in an array. My problem is with a for loop that i have done, to … | |
Getting a C# program with a manifest file to run in the debugger ---------------------------------------------------------------- How do I declare a manifest file in the Visual Studio IDE for C# so that I can debug the resulting code? I have been able to add the manifest file, to the exe after I … | |
Hi All, I have been trying to find out how to hide the save button in a file download dialog box in a aspx page.I open the attachment like this : byte[] byteFileContent = (byte[])objContentTable.Rows[0]["theContent"]; Response.ClearContent(); Response.ClearHeaders(); Response.Clear(); Response.ContentType = "application/octet-stream"; Response.AddHeader("Content-Disposition", "attachment;filename=Chapter.pdf"); Response.BinaryWrite(byteFileContent); Response.End(); i get the file download … | |
Getting a C# program with a manifest file to run in the debugger ---------------------------------------------------------------- Does anyone know how to declare Manifest Files in the Visual Studio IDE for C#? I tried the first in the "How to embed a manifest in an assembly: let me count the ways..." ([url]http://blogs.msdn.com/cheller/archive/2006/08/24/how-to-embed-a-manifest-in-an-assembly-let-me-count-the-ways.aspx[/url]) link … | |
Hi all, The scenario is like this: i have one file which contains some particular paths, now my aim is to make changes in this file so that i can change the path in that file.. eg: file1.txt: ABC -p /home/user/a/b/v23.9/library -l /home/user/a/b/ABC/v23.9 test.exe DEF -r v23.9 /c/d/f -p /home/user/a/b/v23.9/library … | |
Hi, i did uploading a file with using <input type=file> but is it possible to upload file without using<input type=file> i am using PHP as server side language Thanks, swapna | |
hi, i did uploading a file with using <input type=file> but is it possible to upload file without using<input type=file> i am using PHP as server side language Thanks, swap. | |
hi! i want to change the icon of an exe file. And the file will be moved from computer so the icon must be embedded in the exe file...is there any way?? the exe file is a daily use application so i want to give it an icon which shows … | |
I am getting ready to implement a new Server 2003 (with upgrade to 2007/08) and want to have the Server or some software monitor odd activity. Such as an employee copying an entire jobs directory (3GB directory and contains everything about any particular job). This would hint to working on … | |
In the following code, the object is not being written into file in line 30 [ICODE]stfile.write((char*)this,sizeof(item));[/ICODE] When line 26 :[ICODE]stfile.read((char*)&ob,sizeof(item));[/ICODE] is hidden the object is written into the file. Please help!!! [CODE=C++] fstream stfile; class item { int code; char name[25]; int price; int qty; public: int getcode() { return … | |
Here is my scenario i have a file 2000 bytes long. I want to read bytes 500 - 1500 so that i have the middle 1000 bytes stored. I then want to disect the 1000 bytes into 20 bte chunks and preform calculations on ever 20 byte sectiong until the … | |
Hi! I have an external hard drive and I was converting the file system from FAT32 to NTFS on it. That operation completed, sort of, but it came up with some odd message I cannot recollect, at the end of the process and now I cannot see the files on … | |
Hi experts, I have a problem with downloading file. Okay, my project is setup in IIS (pointing to the folder in my desktop) and my users are able to login, upload a file into the folder. However, they are not able to download the file (except me). How can I … | |
Hi my problem is as follows. I want to stream a certain amount of bytes from usbimage2.txt until my buffer is full then write them to new.txt. My first problem is my buffer. If i give the buffer a value of say '4' it compiles with no errors. However i … | |
Hello, I am trying to write something to edit a sendmail aliases file via the web. The script should have a drop down menu with the different pager numbers in it. When someone picks their number out of the list, the script should replace one entry in the aliases file. … | |
I am writing a C program to search for some keyword in a text file The following is the product, but how can I change the char *string[] = { "apple", "orange", "banana", }; to become input from file? (That means there will be one file storing keyword and the … | |
Hello, i need help on how to search for a sentence inside a txt file after opening it and then applying a condition if that sentence was found. im a beginner so i don't know how. basically i have written a program that uses system("command>file.txt") to start a command line … | |
Good Morning, I am thinking of letting users upload files to my website. I already have a php script to allow this which will be the back-end of a flash GUI. I have made the .swf which would allow the browser to find files with only the specified file-types for … | |
c program to move the contents of one file to another | |
Hi i want to use create file to get a handle on my USB device so that i can stream from it. However i am having problems. To me i appear to have the syntax correct but i get errors returned in the form of "Undefinded symbol HANDLE" "statement is … | |
Hi, I've been trying to code a simple file sharing system in python by using Discovery server -indexer- model Server: [CODE]#!bin/python import socket import sys import os import threading from utils import serialize, deserialize, PeerInfo class NotSupportedCommand(Exception): pass class DiscoveryServer(object): '''Indexer...''' def __init__(self, port, maxPeers=5): self.port=port addr=('', self.port) self.maxPeers=maxPeers self.supportedCommands=["/register", … |
The End.