6,015 Topics

Member Avatar for
Member Avatar for Acidburn

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 …

Member Avatar for Drowzee
0
118
Member Avatar for sifuedition

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 …

Member Avatar for sifuedition
0
151
Member Avatar for Acidburn

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 …

Member Avatar for Dave Sinkula
0
85
Member Avatar for Acidburn

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 …

0
62
Member Avatar for sifuedition

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 …

Member Avatar for sifuedition
0
162
Member Avatar for djbsabkcb

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 …

Member Avatar for Stoned_coder
0
126
Member Avatar for RichardPM

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 …

Member Avatar for J_Search
0
108
Member Avatar for sifuedition

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 …

Member Avatar for vegaseat
0
177
Member Avatar for tayspen

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.

Member Avatar for tayspen
0
135
Member Avatar for clam

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 …

Member Avatar for Thong_Ispector
0
222
Member Avatar for quezl

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 …

Member Avatar for quezl
0
245
Member Avatar for nathanpacker

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 …

Member Avatar for zippee
0
129
Member Avatar for George2

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 …

Member Avatar for George2
0
214
Member Avatar for a1eio

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 …

Member Avatar for vegaseat
0
505
Member Avatar for cjm771

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 …

Member Avatar for cjm771
0
4K
Member Avatar for altheastronut

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 …

Member Avatar for altheastronut
0
354
Member Avatar for hashi

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 …

Member Avatar for MartyMcFly
0
127
Member Avatar for Raven11

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 …

0
72
Member Avatar for jhdobbins

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 …

Member Avatar for CrazyDieter
0
143
Member Avatar for mccarthp

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, …

Member Avatar for mccarthp
0
233
Member Avatar for shanenin

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 …

Member Avatar for shanenin
0
265
Member Avatar for ingeborgdot@yah

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?

Member Avatar for Cain
0
180
Member Avatar for swchee

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 …

Member Avatar for Dave Sinkula
0
114
Member Avatar for Drowzee

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() { …

Member Avatar for Stoned_coder
0
312
Member Avatar for BeeRmOnsTeR

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]. …

Member Avatar for crunchie
0
226
Member Avatar for zoodaddy65

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 …

Member Avatar for zoodaddy65
0
300
Member Avatar for angel22

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 …

Member Avatar for angel22
0
549
Member Avatar for shanenin

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 …

Member Avatar for vegaseat
0
165
Member Avatar for Eya

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 …

Member Avatar for JoetjeF
0
140
Member Avatar for kartik911

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

Member Avatar for Narue
0
276
Member Avatar for actionwillspeak

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 …

Member Avatar for Sauce
0
544
Member Avatar for vijmen

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 …

Member Avatar for namit
0
119
Member Avatar for truxpinoyxrl17

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> …

Member Avatar for truxpinoyxrl17
0
521
Member Avatar for mu42774

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 …

Member Avatar for Sauce
0
122
Member Avatar for Pete_R

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 …

Member Avatar for Pete_R
0
235
Member Avatar for winbatch

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 …

Member Avatar for winbatch
0
187
Member Avatar for kurse6

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 …

Member Avatar for alc6379
0
220
Member Avatar for taimaishu

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 …

Member Avatar for dlh6213
0
143
Member Avatar for killerfaber

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 …

Member Avatar for crunchie
0
239
Member Avatar for Drowzee

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: …

Member Avatar for Drowzee
0
274
Member Avatar for woolydesheep

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 …

Member Avatar for alc6379
0
132
Member Avatar for shmay

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) …

Member Avatar for crunchie
0
131
Member Avatar for winbatch

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 …

Member Avatar for winbatch
0
318
Member Avatar for A Monkeys Uncle

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 …

Member Avatar for DMR
0
517
Member Avatar for Cassorangeiroc

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: …

Member Avatar for dlh6213
0
189
Member Avatar for gokulb

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 …

Member Avatar for gokulb
0
281
Member Avatar for bennetjosem

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 …

Member Avatar for bennetjosem
0
235
Member Avatar for BioTechNoob

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 …

Member Avatar for zyruz
0
132
Member Avatar for MrConfused

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 …

0
79
Member Avatar for nerv_liutenant

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 …

Member Avatar for Catweazle
0
290

The End.