4,718 Topics
Hi all, I am trying to create a file and write something into that file. Here's what I have tried: [code] import java.io.*; import java.util.*; public static void main (String[] arg) { try { String file_name = "test.txt"; FileWriter file = new FileWriter(file_name); BufferedWriter out = new BufferedWriter (file); String …
So I deleted some files that are on a drive mapping of remote computer. Where do they get put? I looked in both recycle bins, and there is nothing. Anyone know?
I need to know if anyone can help me with vb code. I have a shared excel file that many users will use. my form writes data in the next available row. But when the users save, a conflict error will ask to replace or keep data in the cell. …
Would you mind helping me to solve the following problem!! I have a file [B]wires.inp. [/B]it is existing in c:\\ctemp\\vuth\\wires.inp. When i tried to open it : FILE *fwiresInp; fwiresInp=fopen("c:\\ctemp\\vuth\\wires.inp","r"); Error existed!!! it means that i cannot open the file above. Could u suggest me some solutions?? Is it because …
I have directory which is used to temporary store images while working with them. Once all process are done and images are not need it anymore I would like to delete them. I tried following code but it didn't work. Where is problem? [code] Runtime comPrompt = Runtime.getRuntime(); String[] execStr …
Hi I want to list all files and directories under a given directory in C. Thanks in advance.:S
I had a 4.2 GB video (made in iMovie) that I was trying to send to iDVD, however, because of all the weird complications with Macs assuming you want to copy a file rather than move it, I decided to put it in the trash folder, so I could move …
Just thought that I would let everyone in on the fact that the new SimplyMEPIS 6.5 Rc1 can read AND write to windows NTFS file systems. :)
hi DW Shell Script Kings :) i have some problem in a step of my assignment. thats i can read the file with this : [CODE] #Read all text from file echo -n "Enter file name: " read fileName while read inputline do echo $inputline done < $fileName [/CODE] how …
hi every body is there any body 2 help me to create a boot disk with assembly help me plz send ur comment 4 me 2 my email : [email]em_moon1981@yahoo.com[/email];)
how can i create file and print server, please me step by step process to creating these server.
Is there a way using file handling functions to search within a text file to find the position of certain text WITHOUT having to read each character/line and evaluating it? For example, let's say I have a file of 'messages', where a message has a distinct start and end characters. …
Hello I am working with a friend who has lost all his data on a project. The rest of the computer is fine but I think he may have accidentally deleted all this info on the project. There is absolutely nothing in the recycle bin either. We have serched the …
I am trying to write a program to print a file to a printer. havent gotten fery far till I started to go ary, here is the listing so far. [code=c] // This Program is to print a file listing with line numbers to Printer. #include <stdlib.h> #include <stdio.h> #include …
Hi there, I am trying to make a piece of code in C that: 1. opens a specified file, 2. Reads the data in the file and separates it into two arrays, based on the position of commas, 3. Converts the strings into doubles and then perfoms some manipulation on …
Hi! How can I read all files in a directory, when I don't know which files are there? Sincerely Jasmina Jeleva!
i want to create a file and print server in 2003 server platform.how can i create these server .what is step of creating both server.
Well, not wild but missing! I recently moved a big chunk of files from my C-Drive to a portable HD. Everything went well. I checked the files and they were there and accessible. Turned off the PC at the end of the day. Came back next morning, those files were …
I have a Seagate 100mb external HD that connects via USB. For some reason it has a folder called Found.000 I can't delete it. When i try it reads: Cannoit remove folder ...The file or directory is corrupted and unreadable. I can rename it though?! And I have I renamed …
I'm making a program that compresses text files using the LZW compression algorithm and creates a seperate compressed file. I made a file type and extension and icon for this file type (.nct), and set up 2 actions for it - one that calls the program and passes the .nct …
I'm working on a program where I'm reading a file and I have to count the number of entries in the file. Each entry takes up a different number of lines, but each entry is also separated by a '#'. I'm wanting to read through the file and count the …
is it possible in tc3 to move a folder say sys from drive c to drive d
I would like to know if I just copied MBR, partition information, etc. Is it possible, or do I need to image? Whats the best thing to do? My first post, sorry if it is in the wrong place. I'm in my first year of Networking and Communications B.A. and …
I have been having difficulty trying to figure out how to read in data backwards. I get the idea, but have no idea how to properly code it since it is string data from a txt file. I was given the basic file to start with, but need to add …
I've finished my assignment (messily) and it works well enough in the uni linux computers - but I can't make file input work at home under XP. I wouldn't have thought that the windows/linux change would make a difference with the JRE... (But then I'm new to this "com-puuuu-tah" stuff) …
Hello Everyone, My question is pretty basic, i hope. Basically, what i have is an extremely large text file, which acts as a flat file database... in essence. Text file formatting looks like this: CLIENT CODE | CLIENT NAME| CLIENT ADDRESS 1 ... This pattern goes on for about 23 …
Hi guys, I am working on a program in C++. I need some help with writing objects to a disc and then read the information later. Thank you,
Hey all~ I was just wondering.. Is it possibal for my app to run a disk scan to look for the files that I had put into each location? Like if i wanted to install it onto several other computers that may have altered settings i just run a scan …
Hi fellow c++ programmers, I need some help with an assignment from my c++ class. The assignment is to use a input file with the following 1 4/12/2007 34 -- 1 is the reference number, date , and temperature to be converted to farenheit. Now i have to output it …
am using tc3 i want to search files in a folder named "project" on c drive this folder contains some text files namely 2-2AA 2-2BA 2-2CA 2-2DA LOG i want to search how many files are there excluding LOG so that i can open them one by one and manipulate …
Can anybody help me on how to search a keyword in my text file. I read about eliza420 Thread but still don't get it. If i have a text file named. "animals.txt" with a content of, ------------------------------------------------------------------- Fish Pig Dog Goat Bird ------------------------------------------------------------------- and in my c++ program a question …
I have a folder called _secure in which I have a .htaccess file that denies all access to the _secure folder. Within the _secure folder I also have a swf file. I'm using PHP to retrieve the secured swf file and show it if the user is logged in. For …
Hey all~ I was just wondering.. Is it possibal for my app to run a disk scan to look for the files that I had put into each location? Like if i wanted to install it onto several other computers that may have altered settings i just run a scan …
I am upgrading a vb 6.0 app to .net and I'm having trouble moving a file. The app retrieves info from an XML. When it's done I try to move the .xml file to a history folder and I'm getting an error: An unhandled exception of type 'System.IO.IOException' occurred in …
[B][U][COLOR=#000000]CURRENT SYSTEM[/COLOR][/U][/B] [COLOR=#000000][/COLOR] [COLOR=#000000]The name of the company that I am discussing about its system is <company name snipped> All the system running in various departments are computerized except that of the Front Office which needs to do some revamping in its system. Everyday the counter will handle the checking …
[code=cplusplus] #include<stdio.h> #include<conio.h> #include<fstream.h> void file() { for(int i=0;i<30;i++) { char a[10]="2-2aa.pak"; a[4]=a[4]+i%26; a[3]=a[3]+((i/26)%26); fstream file; file.open(a,ios::in |ios::out); file<<"anshulgarg"; file.close(); } } void main() { file(); } [/code] it creates 30 files with new names in bin but when i give relative path ex "\\p\\2-2aa.pak" and adjust a[8],a[9] appropriately it …
we did a project in vb.net.we have a list box which shows the drives(c:,d:,e:) which are available in our system.according to selected drives .we need to give a protection (unable) to write operation to that selected drive. No one should have a permission to write operation to our drive. if …
i am a newbie in C++ file processing... Any1 can guide me to search for an item(lastname) in the example below? what is [B]seekg[/B] or [B]seekp... [/B]how to use it? [code=cplusplus] #include<iostream> #include<fstream> using namespace std; void main(){ char firstname[10], lastname[10]; int age; ofstream write("text.txt", ios::app);/*actually i am not sure …
Considering the Shadow Copy option available starting from Windows Vista Ultimate/Business/Enterprise, all files on the disk drive have a copy in Shadow Copies. How can we remove the System Restore copy of a file from the disk drive, using the Volume Shadow Copy Service, and ensure this System Restore copy …
Hi, I have created a commenting system which could be used for commenting articles posted. The trouble is that after doing all the development I am stuck with pagination.The architecture to store comments is to hold in filesystem in the following way. Article {Folder 1} Reply 1 Reply to 1 …
I want to create several files at once containing the same data. Is this possible? I tried using a variable in the file pointer and file name: [CODE] int tel; for (tel = 0; tel < 200; tel++) { FILE *bestand_patienten[tel] = fopen("patienten/patientent[tel].txt", "w"); fprintf (bestand_patienten[tel], "hallo"); } [/CODE] Didn't …
What would be the pusedo code for a program that would write data to file? Would it look something like this? Declarations of type of data you want to enter. Open the file, you want to write to. Check if the file opened. If file did not open try again. …
I have a project that is due and I have written the code and for a part of the code output to the file I cannot get the right format. I cannot figure out what the formatting should be can someone please help me. [code]#include <stdio.h> #include <stdlib.h> #include <string.h> …
hi friends,,, I have two type of files one .txt format another one is .idx format.. txt file have 7 columns delimited with "|" idx file have 7 columns demilited with "," i have to compare the txt file 2nd and 3rd column with idx 3rd and 4th column. Here …
Hi, I have used C# in vs 2003, in my application i have to read text file, pick data from text file and insert into database, but the text file have some garbage value (garbage value "Ú" ) , so i should replcace this garbage value to single space, i …
I have the following file as the input APPLE 0 118 1 110 1 125 1 135 2 110 3 107 3 115 3 126 ORANGE 0 112 1 119 2 109 2 119 3 112 4 109 4 128 MANGO 0 136 1 143 2 143 3 143 4 …
Hi, I've erased file accidentally and I need to restore it by now. There is much soft now for that purpose, but I wish to use the most reliable one, as the file is important for me. What can you recommend? OS XP, NTFS
hello friends i m new in linux i don't now how to use linux n instole it.then aslo i have instole it's so i can't make partition proprely.so i want to instole it again i have one partition of 8 gb in which i have instole linus plz tell me …
Hi everyone, I was trying to load an assembly during runtime from a remote application server using the web configuration file in C#. I created a dll eg. RemoteLib.dll. Then i developed a windows application that uses this dll. eg. testApp. I added a config file "testapp.exe.config" that contained the …
PQPZ3.DATR.QRL.R9529.D090295.T19501.das.1333332287722.1.2.err I have AIX so I can't use rename hopeing for something easier but I need to find all the files in the directory and then any of them that have a .err on them I need to be able to rename them back all the way to the .das …
The End.