4,718 Topics
Hey Everyone, I need to write a program where the first half builds what is basically a file directroy tree. Files and their paths will come in from file in the form... /program/file/whatever ... and be read into a string. Problem is I don't know how to manipulate strings very …
hi below is my save function that is used to placed data from the C program to a text file for future usage. [code] [COLOR=Blue]void save() { FILE *save; int i = 0; save=fopen("employeerecord.txt", "a+"); do { if(strcmp(record[i].ID, "")!=0) { if(i!=0) fprintf(save, "\n"); fprintf(save, "%s %s %s %s %s ", …
Im trying to write a struct for a binary header of a sun raster file to a file on disk. i have a struct for the header data: [CODE] struct rasterfile { int ras_magic; int ras_width; int ras_height; int ras_depth; int ras_length; int ras_type; int ras_maptype; int ras_maplength; }; which …
accidently clicked a button twice, resulting in MAC read the command as in download the file. forced to quit the process, but the file is now on desktop, can not be moved nor deleted, the message says the file is currently used by another task right now, such as moving, …
Well, not so much difficulty, more like I am completely stumped! I've only been programming with c++ for a few weeks, yet I have found myself in the predicament of having a small, albeit difficult assignment to complete for university pretty soon. I was wondering if anyone could help me. …
hi rellay i am new in you forum but i think that i will intersted with you... my quastion is: how can i compressed any file as zip by php? i have a file and i want from user to download it as zip file and i want to compress …
Hello there, My program is supposed to read data from a txt file, and put this data in a 2 dimension array. All I have is the last line of data in my text file. My teacher said that I have to update the array in my loop. I have …
I have a windows 98 running in a compaq deskpro that now is saying that there is an unrecognised command in config.sys file and that there is an error in config.sys file in line 1.I have a rescue disk and I copied the himem.sys file to c:\windows and typed sys …
Hi everyone, I am doing a simple compression program in which the application uncompresses the file to a selected folder. The thing is that the file that is being compressed already exists in that folder. What i need is someone to show me a way in whic the file is …
Hey there, I'm new to java and I need to write a string that i generated in my code to an output file. I'm currently writing the string to the standard output like so : System.out.println("K_"+Receiver+",t"+msgnum+"(R(" +Receiver+",t"+msgnum+"("+out1+")))"); All the types e.g. 'Receiver' or 'out1' are of type string. Could anyone …
I get an error as below when I try to boot my Linux server:- /data contains a file system with errors, check forced. Error reading block 7700497(Attempt to read block from filesystem resulted in short read) while doing inode scan. /data:UNEXPECTED INCONSISTENCY; RUN fsck manually. (i.e., without -a or -p …
I need a good programme for generating new files that will save consecutively etc. Quite basic stuff for your great minds I would believe. :cool: My files get a bit messy after a while and mistakes are not unknown. Each job we do needs its own report, sometimes upto 3 …
Hi everyone, I have a weird problem. I have created a zip manager and unzip manager. The zip manager works alright in a sense that it can create zip files and also the contents of the zip file zipped by my own zip manager can be extracted by using winzip. …
Hi everyone, I'm doing a beginners C++ paper at Uni and I'm stuck. Basically I need to read data from a file and then display it on the screen. So far I've got: Correct headers will be called..... int main(){ char filename[30]; FILE *in; printf("Enter file you wish to open\n"); …
hi guys i want to recursion in such a manner that i put menu name in properties file and i want to add theire respected sub menu. e.g. menubar = file edit help file = New Open Save Exit edit = Cut Copy Paste help = help help = about …
how to increment file pointer .... suppose i want to read the 1st possition in the file and then the 64th position ..how to do that??????????
Help required in files. SOME example to explain it please...........?????????????
Ok my problem is i have a struct and im tring to ready a line into the array of structs using fstream. here is the code i have its just a basic layout of what will come later on. but here it is :) [code]// file: main.cpp // author: Kyle …
Thank You for taking your time to read this. Well, the subject kind of tells it all. I have built an webshop, but would like the order to be place in an text file insted of mysql. This text file has to be in an csv format in order to …
anyone remembers the syntax of reading a file into C and subsequently printing it out? for eg. i have the file 'matrix.txt' the contents inside the file is as follows: <matrix> rows = 2; cols = 2; 1 2 2 4 </matrix> how do i read it into my C …
hey guys..... i need 2 write this program which picks as and when a new message is written into the syslog file(syslog is a system file in unix) the trouble is ther r hundred's of messeges written into syslog file. I was experimenting with End Of File and pointerts but …
I have a text area and a button on a frame and there's some text in the text area. What i need is when the user clicks the button whatever the text in the text area is saved to the file "C:\ret" with the aid of the file selector dialog. …
I need help finding the easiest way to transfer files from a desktop computer running XP to a laptop running XP. I have tried connecting the computers directly sing an ethernet cable, but I can't get the Files and Settings transfer wizard to work.
well i dl'ed a windows media file from limewire...ive read many message boards and took all their suggestions but none worked from me....it should be a wmv file but wont play and shows up as 0 bytes...i tried safe mode...command from start run...eraser and hjack this...also antivirus..but eraser said nothing …
Hie I have got a problem , the problem I cannot extract the values from a file (eg I created a file called gray.txt for extraction and a file called average.nbr for insertion) the program is running but if I check in the file average.nbr there is nothing written. here …
File / sharing k, i have 3 comps all running off one router, i can ping each comp, and also, i can see each comp on my network directory. yet heres my problem, i can look at any of the 2 comps opposing to me, and log onto c: drive, …
hi guys, can anyone here give me c program about any file which would in binary format . the program will copy some content of binany file which would be on a tape drive (or any drive) & paste it another text file that would be in disk. thanks in …
Hi ya, I looked up "fc" and "for" in DOS commands but unable to find the solution I desired. I would want to edit a command into a .bat file that could search a particular field in a line (the line might be of different sequence order) in a .dat …
as title mentioned, i face problem with convert a jumbled text file to unjumbled text file, some of you might not clear what i am saying, well a example will give a clear idea what this all about. jumbled text file contain a few line of number, after unjumbled it, …
:o i want to learn on how to create a file maintenance program using addodc help help help.....
[COLOR=Navy][B][FONT=Courier New] aug 4th 2004 ref: I E 6 - "file/save as" menu does not save pages correctly on my local disk on last May I was obliged to reformat the HD and reinstall everything ; since then I noticed that I cannot save correctly the web pages on my …
Hey, First off I'm really new to Java so please bear with me. I need to read in a file and translate it to a different output format. An example line segment from the input file has the following format: "step(procs(),rule(1,A,B,vars(Na,Rv,ped(pk(B),cat(Na,A)))),procs())" (i) This means that at step 1, A sends …
hai I'm again I already done my program below. the problem when i run no output appear. basically I declare 2 file . 1 for input(InTransFile) another one for input and output(InMasterFile).Both in .dat. I want to compare accno1(masterfile) and accno2(transfile). if they equal have to overwrite balance1(masterfile) and next …
hi I have problem with file. The problem is I have to compare two file 1)master file and 2)transaction file. both have accno, amount,id and code(d-deposit,w-withdraw). the accno is in char[10] ,amount double, id integer and code character[1]. my problem is how to compare accno from master file with accno …
I am writing a program to copy files from one location to another. I only want to copy the files that is not in writing mode. Here is the logic: (1) If the file is not opened (by any application), copy it; (2) If the file is opened (by any …
Hi there. for the last couple of weeks I am trying to find a solution to my problem but with no luck. There is a program written in C++ which can fine the mac addresses of the bluetooth addresses that are in range. As soon as it finds them, it …
I have a problem trying to transfer files from my older Mac (OS 9.2) to my new Mac ( OS 10.3). I connected a crossover ethernet cable to both machines, then turned on AppleTalk and FileSharing on both machines. Mac Help says that's all you have to do. Obviuosly there …
Here is what happened to me in sequence, any help would be appreciated (Dell Deminsion 8100, XP - SP2, 1.5ghz p4, 384 mgs ram, Nvidia 5900 video card.) 1) was removing old video and sound driver remnants with Driver Cleaner in safe mode 2) rebooted, for a few mins everthing …
I wonder if anyone can help me with this one. A friend and I live a few miles apart, and wish to share files etc. Is there a way we can do this via internet? The files tend to be very big, so email is not really an option. I …
Hi all, I need to maintain a text file which contains only 10 lines. As a new line is added to the top - a line is removed from the bottom. So although the file is automatically updated regularly it will always contain only 10 lines. I know how to …
Hi I just installed Norton net security and in the instructons it mentions that it blocks file/printer sharing by default. When I am trying to connect to someone over MSN messenger to have a videconference or swap files I've found the only thing to do to get it to work …
Hello, I have a dilema. Currently if i want to save a file / read from a file i assign a string variable to a directory for example C:/Files/Blah.txt . However, i am currently working on a program which will be distributed between some close friends and having a fixed …
hello, i want to sort a file and i don't know how to put the data from a certain field of the file in a vector, sort it and then put it back in the file. here's what i've done. [CODE]FILE *file; struct catalog{char 1rst_field,2nd_field,3rd_field}name,v[100]; //here i put the data …
Dear friends, When I list the files in my machine with SUN solaris 5.8 I can see an unidentified file like..... -rwxr-xr-x 1 isos staff 566952 Oct 12 2001 sendapi* -rw-r--r-- 1 isos staff 3471 Oct 12 2001 set_environ.inst -rw-r--r-- 1 isos staff 1534 Oct 12 2001 setenv.site -r-xr-xr-x 1 …
I'm a novice programmer, I'm writing a program called GPA that reads characters and numbers from a file. The numbers from the file are the amount of credits for a course, the characters on the program represent the grade for the course. I'm supposed to find the amount of credit …
Hi there, I am currently converting a matlab file to C, and need some help writing the data calculated in 2D arrays to files. This is what i ahve done so far: <snip> File *U; File *V; File *X; File *Y; U = fopen("U.txt", "w"); V = fopen("V.txt", "w"); X …
I have the code(below) but I can't get the program to close data2.txt and opne it again. Is there a way to reset the starting read position? I want it read through the file for as many times as I want, without ever editing the file. [size=2]#include <fstream> #include <string> …
Hi everyone first time post, but it seems to be a pretty difficult problem. I have two computers, the first is a AMD Desktop with two NIC cards (both Netgear 10 Mb). One of the netgear cards is configured to connect to the school's T3 connection, the other is meant …
Greetings! Can anyone please educate me about this topic? I was wondering, how do people come out with extension files such as .doc, .mp3, or let's start with .txt first. How can I do that? Can anyone please provide me with a rough idea? Thanks.
[font=Arial][size=5][color=#0000ff][i][size=2][color=black][font=Verdana][color=black][i]I found this in a few different places around the 'net - hopefully it's helpful:[/i][/color][/font] [/color][/size][/i][/color][/size][/font][font=Arial][size=5][color=#0000ff]Move the Paging File in Windows XP[/color][/size][/font] [font=Arial][size=2][color=#000000]This article describes how to change the location of the paging file in Windows XP. The paging file is the area on the hard disk that Windows uses …
The End.