6,015 Topics
![]() | |
I've got a problem trying to replace keys (dictionary) that I have in a file, with its corresponding values. More details: an input file called event_from_picks looks like: EVENT2593 EVENT2594 EVENT2595 EVENT41025 EVENT2646 EVENT2649 Also, my dictionary, created by reloc_event_coords_dic() looks like: {'EVENT23595': ['36.9828 -34.0538 138.1554'], 'EVENT2594': ['41.2669 -33.0179 139.2269'], … | |
Hi: After having posted to over 1,000 directories, there are a few things I would like to bring to the attention of directory owners and operators: 1. When you ask for information, such as the URL, the e-mail address, the description, or whatever, PLEASE put any restrictions right on the … | |
Hello Friends, I have developed a windows application using C#, its installed on [code]C:/program files/application folder/application.exe[/code] I have not used Data base so i have used files (CSV/TXT) for storing data, there is many types of files generated by application and some application setting variables are also stored in a … | |
what is the use of [code]unix-stream("path/to/file");[/code] I can't seem to find it anywhere. | |
I want to be able to launch a program using the system command that is located in the same directory as my program, is there an easy way to do this, without having use the getpath function and store it under a variable? Thanks | |
Hi everyone im making a program to keep track of your movies just keeping it simple ! but im having a problem i am writing what movies you have to a text file but i cant append to it every time i write to the text file it overwrites everything … | |
Hi, I'm seriously guessing here, but since I've seen that some php websites contain java stuff, like a java chatroom, I wonder if I can find a better solution adding some java to my php code. I'm looking for a way to browse and select a folder, or allow the … | |
hre is my code for deleting a file, wats missing? $getFields($fields); $infoFile = $doc->getFileInfo($file); $title = _l("Delete a document"); if ($action == "dodelete" && $file) { if ($doc->hasRight($_SESSION["Sid_user"], "d", $dir)) { if (!$doc->deleteFile($file)) $error = $doc->errstr(); else $error = _l("Document successfully deleted !"); } else $error = _l("You cannot delete … | |
I created a browse button and it will allow the user to either open or save a file to their directory, but the problem I am having is how to be able to view the path location in a textbox so the user can see where they saved it... here … | |
please someone give me a code to delete a file in a folder, ie one code to be used on a variety of file deletion | |
hello, im working on a file transfer program but a cant figure out how to make the main function work, i have spent hours on Google trying to find a solution... but i cant. Now, as you probably have guessed: the main function is to transfer files over the internet, … | |
I have a Simple file browser on my php, and everytime I enter Open index.php file in my localhost, the file appears, but when I upload them in my server, the file cannot be seen, I made all the file permissions to 777 and still no luck... I think i … | |
Here is what I have to do. this code needs to be modified to be able to enable the user to select a file in which to store grades. The application should allow the user to write any number of grades into that file and it should write one grade … | |
I have a question regarding the use of malloc and realloc: for this, "part", of my assignment, I have to read in every word from a text file and count the number of times it appears in a text file. The definition of a word in this assignment is very … | |
Using onMouseOver in a link - I am able to display a file's contents in a frame. - I can display an image file in an IMG tag But I can't figure out how to combine the two. What I want to do is onMouseOver display the contents of a … | |
Hi, I need wrote a script which can go to particular site and download all the wallpaper or images available there. Can any one suggest me how to start with that. I never wrote python prog before but i know python. If anyone cn give me the direction it will … | |
Hey guys. I just learn about magic numbers today. I am trying to make a program that uses fstream along with magic numbers to tell what a file is. Example the magic numbers for jpg are ff d8 ff e0. How do i check a file to see if its … | |
[COLOR="Green"]Hi all Pls tell me how i can read a data from EXCEL file and copy it to a text file using c++ program.I dont want to do it as manually .(Its for an extended application for software).I want to read the data from perticular cell to the end of … | |
This may be a rather simple thing to answer, but I am no programming expert. Let me explain my problem in detail: for this homework assignment I need to open up a file with simple text in it, format it so that each line is reduced to a certain number … | |
Hi guys i have a problem that i have a text file which contains very long text like : welcome to all, how are you doing, etc.. so i need to cut the text till each comma and put it in a separate file like i want to pu [welcome … | |
Hello everyone. I am trying to pull data from a file and show it on the screen. There is a condition in the file that says if it is a "payment" or "order". A "P" and an "O" in the first column. My output becomes an infinite loop. I have … | |
Hi all, very new to PHP (ie. only 2 days old!) so please be gentle! I have a form with text fields and a file upload, and the php script I have is working wonders in regards to uploading the file and emailing the form data along with a link … | |
Trying for a few days to do this and do not know why it does not work. I want to run a php file using js. And using the event button onclick. Thanks for help file.php [code] <?php echo"<script>alert(\"good\");</script>"; ?> [/code] file.html [CODE] <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> … | |
This article assumes you have already done the following: 1. Built, activated, and optimized your website. 2. Done all your on-page SEO 3. Verified it and listed it with Google, Bing, and Yahoo, including your sitemap. 4. Listed your site with social media sites such as Twitter, Facebook, and LinkedIn … | |
Hello everyone, I have a question about the getline() function. I want to read from a text file and add each sentence to a string array, separating them by the full-stop. The getline() function format for input from a text file is different from the one that takes keyboard input. … | |
Hi , I am trying to save the output of "help('tkinter')" in a text file. But i get error. I want to know if there is a Way to get the output of help file redirected to a file , or save in a variable. By the way , the … | |
![]() | I've searched google and tried several different things but I can't figure out how to read strings into a two dimensional character array and also read doubles into separate arrays all from the same text file. Please provide any help you can and let me know how you might accomplish … ![]() |
Greetings! I've been working on this program for the past couple of hours now, and I cant seem to get it right. I'm supposed to write a program that reads in integers from a text file, and then find the sum of the integers. The problem I'm having is with … | |
Hi folks, I had created a class for student. This is the class. [code] class student { int rollno,marks; char name[20]; public: void show(); void get(); int filecreate(const string &,fstream &); int fileopen(const string &,fstream &); static int add(const student &,fstream &); static int read(const student &,fstream &,int); static int … | |
I’m trying to use an Aug20th 2005, how to set file access time, here on DaniWeb. I need to modify the file times for a “C”, not C++, Visual Studio 5, console ap that I am working on. Here is the exact code for the project: [CODE]#include <windows.h> #include <stdio.h> … | |
Im a beginner at Python and I have written a program consisting of three functions and now Im stuck when I need to 'call' on them at the bottom of the program. In the 1st and 2nd functions I get some information and saving it to a file, but the … | |
Your program should calculate and output (to the screen) the following information about the file of text: 1. The total number of lines in the file, including blank lines. 2. The number of blank lines in the file. 3. The number of periods in the file. 4. The number of … | |
I am getting the following error: PII.cpp:266: error: 'struct std::string' has no member named 'getfirstblock' And I'm not sure how to fix it, since "int block" has to be equal to the firstblock of the file, how can I fix that error? Also, my "getfirstblock" function should return the block … | |
I'm developing a web app in which I have a file upload option. The thing is, my file input is hidden, and instead, a textbox and a button are used, in order to style the input, copy the file input's value and allowing the user write a link address into … | |
Hello again. I am hitting a brick wall. I am to read data from a file, store the data in three arrays respectively, and then calculate and display the average of the numbers in column 2 and 3. These are the things I know: Read my data from file. Use … | |
Two things. First I need to resolve the linker errors I'm getting and I also need to learn how to create a text file in a C++ project file. I'm working on a stacks project with classes and I'm running into linker errors. Specifically it says: [B][Linker error] undefined reference … | |
Any sequence of python strings can be disguised to look like a file opened for reading, which can then be passed on the fly to functions expecting such an input file. This code snippet defines the necessary adapter class. The obtained file-like objects store only one string of the sequence … | |
hey me and my group are doing a project but we dont know how to use the file pointer (to export the C program to a text file and we dont know how to make it so the random generator makes our words go diagonal top left bottom left top … | |
Hello, is possible in C# create a file with custom extension? and the file can be open only from progra and not from others text editors. I have a login form were i store logs in txt file for now, that i want is to create an file named *.lst … | |
i have these two separate files: html form: [CODE]<form name="form" action="1.jsp" method="post"> <b>File Upload:</b> <input type=file name="seqFile"> <input type=submit name="submit" value="submit" > </form> [/CODE] and JSP file 1.jsp: [CODE]<%@ page language="java" import="java.io.*" errorPage="" %> <% if(request.getParameter("seqFile")!=null){ //"C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/ROOT/test/seq.txt" String file = request.getParameter("seqFile"); FileReader testRead; testRead = new … | |
Alright, so in yesterday's thread, I asked for the codes to copy the contents of a directory to a separate directory. The code: My.Computer.FileSystem.CopyDirectory( , , ) worked fine. However, I have decided that I wish to add a progress bar into the mix so that the user can see … | |
Hi all, The project I am currently working on is an Address Book which works off a csv (specification takes the mick as a database would be so much easier), the method to write the lines of information into the CSV is in the class DataLayer and takes a String: … | |
i am doing a project on student information system using file handling...i made my own project but it didnt work....i read many books but actually the main problem is that i lack logic.....i have found from the net this project but the output on the notepad file is giving unusual … | |
Hi All, I wanna to search a pattern in a txt file called A which is a 2D matrix from another file called B. The requirment is that I need to output the number of matched pattern in file B. But I encounted difficulty of counting the number. Basically I … | |
I open the Ubuntu Software Center and I search for Scribus. It shows three options and I choose one. A blank window appears. The window should, instead, give me the option to download what I chose. I am a total noob and I apologize in advance. Thanks! | |
Hi, I have received an application that stores some properties in a file. The existing struct looks like this: [CODE] struct TData { UINT uSizeIncludingStrings; // copy of Telnet data struct UINT uSize; // basic properties: TCHAR szHost[MAXHOSTLEN]; //defined in Sshconfig UINT iPortNr; TCHAR szTermType[MAXTERMTYPE]; // login properties: BOOL bTelnetLogin; … | |
I need to write censor program that 1-reads in the text from a file 2-creates a new file where all the four-letter words have been replaced by “****”. can you help? this what I have so far [CODE]import string def main(): filename = raw_input("File: ") text = open(filename,'r').read() text = … | |
Hi guys, first off just wanted to say that this website has been immensely helpful to me for my programming class. I asked a question to help with a lab a couple of weeks ago and was able to figure out the issue with the forums help, so thank you. … | |
Hi!, I have a text file that contains a 2 dimensional matrix, and I will have to deal with many different files with different matrix dimensions, so I decided to use vector of vectors as they double their size automatically. the problem is that I don't know how to get … | |
I'm modifying a page that handles content addition. I've been tasked with allowing simple PDF file uploads, but can't figure it out. The PDF is to be posted, then uploaded and the title saved into a database field. All this functionality is to be contained within the one content addition … |
The End.