6,015 Topics
![]() | |
Hello, I've created a file and put datat into it, only problem is that throughout the operation of the program the file is "amended" and bits are added to the file. However I'm wonder if theres a way to delete the file contents so next time someone starts the appilcation … | |
What is happening here? [code] void palindromemgr(ifstream& in, ofstream& out, Stack& S) { string c; //candidate while (true) { cout << "entering first loop" << endl; //debugging line if (in.eof()) break; in >> c; cout << "this is the value in c :" << c << endl; //debugging line for … | |
Hello I figured out my other problem, now left with another 2. One which I beleive is a logic error since if I enter A it will output AA but I cant seem to solve that one. Also the other is that I'm using app (append). How can I delete … | |
hello, another stupid question but what is wrong with this? [code] infile.open("new.txt",ios::app); if (infile.fail()) { cerr << "Error"; exit(1); } [/code] ever since I've added the ios::app it keeps printing error and then haulting but from my resoruces if you want to append a txt file thats whats the syntax … | |
I need to use a class for a program that reads an input file, prints the file, sorts the list then prints the sorted list. This is for a Programming II class. I can see how to print and sort. My issue is the input file and the array. I … | |
I am trying to write a program that reads in a file of numbers, writes to a file and displays the numbers in correct order. I don't fully understand how to read the file and pass that information into my class declarations in order to output before and after the … | |
Windows ME Whenever I try to delete a file, I receive a message "Cannot delete ___. Access is denied. The source file may be in use." This happens no matter what file I try to delete. What could be using every file on the C drive? How do I regain … | |
Well, here is the gist of the problem. When I read in a file of integers, if there is a formatting character at the end, the last integer is repeated. For instance, in the code, it is reading i01.dat. If that file reads as follows: 2 3 4 5 with … | |
Ok so i want to create a file [CODE] File.Create("..."): [/CODE] I want it to be able to detect the user that is on so it automatically creates it on there desktop. Is this possible. | |
Hi Guys. Basically I was wondering if it is possible to Append to the START of the file, instead of the end? For a bit of background information, I have a lump of raw data in hex (they are samples collected from a microphone on a microcontroller then transferred to … | |
I have a problem when I'm attempting to access one particular web site (which happens to be my own). It's basically giving my a file download dialog box wanting me to "open the file at it's current location" or "save file to disk" no matter how I try to get … | |
Hey everyone, Say I have a folder full of files, zips or whatnot. Is there a script out there that will go through that folder, and create a page of links to download those files. Anything customizable or not. I just have a large collection of files that I would … | |
Hello everyone, When debugging a C or C++ binary file, the file is different from the release version of binary file (debug version binary file is larger). My question is, if we want to debug a Java binary file (.class file), is the version of file (which we use to … | |
I want to read everything from a file using python. the one problem i am having (note: EVERYTHING from a file) is that python is returning an EOFError when i know that it's not the end of the file, is there any way to just read the damn thing till … | |
ok so last time I was here, I was programmin tic-tac-toe and its great. Now I have programmed hangman! :D . Anyways right now its for two players only. So I want it so the computer will choose a random word from a text file and assign that to my … | |
Hello, I'm almost done with my program however I'm having trouble getting what I want printed to a file. I'm familiar with the printf function and what I want is to print out to the file in scientific notation, which would be %E if I were using printf. Is there … | |
On my computer we have three different log-on accounts. One of the accounts doesn't work anymore. Whenever you log on the whole thing freezes, the clock won't change and nothing will work. I decided to call my computer company (dell) and they said that I have a corrupt profile. They … | |
Here is a source code I found while searching google for API functions. The source will generate a header file from a source file, anyways reading it you can learn a lot. [url]http://www.hwaci.com/sw/mkhdr/makeheaders.c[/url] I also know you can generate header files from a compiled .dll file. Sounds interesting but seems … | |
alright say i have a data file i want to open up and extract the data into a binary tree... i do this to open the file: [CODE]binaryTree::information() { ifstream file; file.open ("proj4.dat"); }[/CODE] although ill have more in that after i learn how to do it.. and i have … | |
Python Version: 2.1 Platform: HP Windows XP I am using Python scripts generated by ArcGIS/ModelBuilder in order to automate geoprocesses. Currently I am calling a series of scripts from a batch file that is called by the task scheduler. My problem is if there is an error the process stops, … | |
I wrote simple python program that rips, encodes, and gets song data from the cddb. I would like to give the user the option of customizing it to there taste. So I want to make a config file that I can store in /etc(linux fiel location). for example it would … | |
![]() | I want to transfer my files, pictures etc. from one computer to another. I have never done anything like this before. What would be the best way to do this? |
Hi, all I am trying to compile and run a programme which I got it from a friend. The problem is every time I compile, the error 'graphics header file no found" appear. My question is : 1. Is the graphic header file come together as standard library? bcos I … | |
I'm making a program (using MFC) that opens a file using the c-style FILE* format rather than C++ style streams. I'm doing this because I'm lazy, and so I can use as much pre-existing code as I can. When I close the program, a destructor is called. [code] CGrid1Doc::~CGrid1Doc() { … | |
I have got a big blue websearch bar which appears at the bottom of my computer screen whenever i open up a web page for the first time. It the stays there until the computer is shut down. When i right click on it it gives the web address: [url]http://lop.com/passthrough/newpass.html[/url]. … | |
Greetings all, I am, obviously, new to Java. I am in my second Java class at UOP, and quite honestly, they seem to believe in letting us teach ourselves! Enough of my rant. I am currently working on expanding a mortgage calculator program, such that it needs to open a … | |
Hello: I need help with a project. I have to read an input file that contains data for 17 students. This is how they are: first ID, then first name, then last name, then 10 test scores. For this data, I have to read it and process it to send … | |
I have been messing around with some scripts, and would soon like to start making a few gui apps. I plan on using either tkinter, or possibly pygame, or pygtk. Are there modules already built that will allow you to browse graphically? for instance, choosing a file, or directory, using … | |
I'm not very expert in using Win NT. I need your help to share file or folder in Win NT. In Win 98, 2000, ME or XP we can share our file easily, just right click at the file & then select sharing...as long as we have file & printer … | |
Hi, can anybody help me? i am relatively new to C Programming. My question is : How do you create a program which will take a filename as an argument, check whether the file is present and open it (if the file is not present create that file). Thanks -Kartik | |
Hello, I have a quesiton regarding my code. I thought it would be cool to try to implement the reliable UDP file transfer that everone does as a college student. I'm new to java, and im having some problems. Whenever i try to connect with the client, it refuses the … | |
Hi I am a newbie to php, having worked more in java. I am trying to write a php script to upload images to a directory. This works in windows but when I test it on a unix box, there seems to be no error message but the file does … | |
I need help. I need help on reading input file using .READ and normal streams. I also need help on sorting input file and passing data to the structure rec and output it without showing any null characters..... here's my confusing code... #include <iostream.h> #include <iomanip.h> #include <fstream.h> #include <string.h> … | |
Hi, By the way, I used JAVA to run this simulator.However, my question is, I have to deliver this part of the assignment by 7th of August, but I am not sure if whatever I tried to explain on the [B]Explanation for the Summary Result File for TWO processes in … | |
Hello, My first post, a little nervous I am. I am starting with learning Java on the server side in servlets. I use Flash on the client side. What I would like to do is the following: [INDENT]client side: send xml file / receive xml file server: accept xml file … | |
Hi, I would like to be able to use an api for reading/writing to a file database. Basically, I will have to write programs that have recovery (meaning if it shuts down, etc. it has a file/files to recover from). I could attempt to write something myself but if it … | |
hey guys. well let's cut the small talk. i'm trying to access a free lineage 2 server and the directions state that i have to edit my host file. i did my reading on it and found that it should just assign an ip to a host name and the … | |
I have tried everything to rid my computer of whatever is making it act erratic. Avg anti virus finds nothing but later finds trojans that it can't delete or heal. Trojan hunter just as innefective. Please help here is my hijack this log. Logfile of HijackThis v1.99.1 Scan saved at … | |
Hello boys i'm an Italian boys with a problem,THE STEALTH.HIJACK VIRUS!!! :cry: Thisi is my HighJackThis File Log,can you help me??? THANKS!!! ;) Logfile of HijackThis v1.99.0 Scan saved at 14.29.33, on 07/16/2005 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\csrss.exe C:\WINDOWS\system32\winlogon.exe … | |
Well, blast. My first attempt took too long, and I autodisconnected. Short version: Not doing homework, on internship(first gainful employment). Task: Make GUI for existing Console app that takes binary input file. Milestone: By Monday, create windows App that displays output of binary and text input files using MFC. Assumptions: … | |
Hello all, Ive been building music PC's for friends for a while now and have been getting busier. I was wondering what is the best way to make a recovery CD... I know Norton Ghost is brilliant but i didn't want to use it for two reasons...1) I want to … | |
Before scanning with Hijack This i scanned with trendmicro and adaware here is the logfile; help would be greatly appreciated my computer has become quite slow. Thanks. Logfile of HijackThis v1.99.1 Scan saved at 3:15:18 AM, on 7/11/2005 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) … | |
Guys, Either there is a bug in the compiler or I'm getting dumber by the day. I want to read an entire file into memory. (Very small file, so no worries about size here). I followed the example here (from [url="http://www.cplusplus.com/"]www.cplusplus.com[/url]) [code]// reading binary file #include <iostream.h> #include <fstream.h> const … | |
While trying to delete, rename, move, or copy and paste a file I get the message: Cannot delete file: Cannot read from the source file or disk. While trying to use a program called Mboot (which can move or delete, move, etc files that don't start up when booting, I … | |
I just got done running hijackthis and got the log file but I am not sure on what I am supposed to get rid of. Any help would be greatly appreciated, thanks Ben here is the log file Logfile of HijackThis v1.99.1 Scan saved at 9:48:20 AM, on 7/13/2005 Platform: … | |
hi there... i have read the other users how they cleared the virus.... do help me out here is the log... Logfile of HijackThis v1.99.1 Scan saved at 3:56:53 PM, on 7/8/2005 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe C:\WINDOWS\system32\services.exe C:\WINDOWS\system32\lsass.exe … | |
i got a page index.php. i got a link over there to download.php. in download.php i'll do some mysql things. (like count file download...) and redirect the browser to some file 123.zip. Wot i really want is. I dont want to go to download.php instead the browser should remain in … | |
Hi all, My first, but likely not my last post. I’m teaching myself C++ with basically no programming background. I’ve been using Borland, reading books (such as teach yourself in 21 days, etc.) and reading this website, but now I’ve run into a problem and after three days of trying … | |
I always open a file just before it it written to, then close it as soon as practical. I have always wondered what would happen in this scenario:- Your program is on a server and two people use a shortcut from their stations to run it. All the file access … | |
Well, I've gotten myself into another fix. This time, I compressed old files on my laptop as prompted to by winXP, so i could get some more space, etc. The problem is, somewhere along the lines, it either compressed or deleted a vital dll file that windows needs to start … |
The End.