I am starting a new project and i plan to use c# for it. Basically what it entails to is reconfiguring a large am mount of config files. 100+ of them. They are each named differently but are prefixed the same (ex: CONFIG_FILE_xxxxxx , where x changes). Inside the files also follow a similar structure. My question is how would i go about getting started with this. The reconfiguration i plan to do to these files is edit certain parts of the files depending on their name and then saving them. The editing part is going to come from a …

Member Avatar
Member Avatar
+0 forum 3

hey i want to access a variable value in another file .(without usage of extern and separate header file) . can i do it using fscanf ?? if so then how???

Member Avatar
Member Avatar
+0 forum 1

i would like to check a size of data structure of a file in another file . how can i do so using fopen????

Member Avatar
Member Avatar
+0 forum 1

We have been assigned to make a program for a bank using data file handling, as our project. I am having some trouble at this point... the last object written in the file is printed twice and I've no clue as to why. Case for display: [CODE]file.open("Records.dat", ios::in | ios::binary); if (!file) cout<<"\nCan not open file."; else { file.seekg (ios::beg); while (!file.eof()) { file.read( (char*) &rec, sizeof (account) ); rec.display(); } } file.close();[/CODE] And my display function for the class: [CODE]void display () { cout<<"\nAccount number: "<<number; cout<<"\nName: "<<holder; cout<<"\nAddress: "<<add; cout<<"\nPhone number: "<<phno; cout<<"\nBalance: "<<bal<<endl; }[/CODE] I don't see …

Member Avatar
Member Avatar
+0 forum 5

[B]Background:[/B] An application that opens a file, searches the file for the old password, replace the old password, and then saves an closes the file. The file is used by another process. [B]Servers [/B] I have two environments one for dev and prd. [B]The Issue[/B] * On prod the files are opened and saved with the current date and time, but the previous password is not replaced. * On dev the files are opened, replaced, and saved correctly with the new password. [B]Things I Have Tried [/B] * Check file permissions between the two environment and found that it was …

Member Avatar
Member Avatar
+0 forum 11

Hi, For a homework assignement, I'v been asked to write a small school administration system. Currently, the user is able to enter a new student and their age which is then stored in a text file. This all works fine but now I need to load the contents of the text file into an array where the data can then be represented and used. The code is written below [CODE]program school2; USES CRT,SYSUTILS; procedure loaddata; Begin End; procedure enterstudent; VAR name:string; age:integer; currentfile:text; Begin CLRSCR; writeln('Student Name: '); readln(name); writeln('Student Age: '); readln(age); Assign(currentfile, 'C:\Users\lavinia\documents\studentdatabase\studentdatabase.txt'); Append(currentfile); writeln(currentfile, name, ',', age); …

Member Avatar
Member Avatar
+0 forum 1

[CODE] <?php $oldumask = umask(0); mkdir($url, 0777); umask($oldumask); $myFile = $url."/index.php"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData ="lots of things"; ?> [/CODE] Why am I not being allowed to write files to my website, it was recently working, my host had some technical issues yesterday,, and now it isn;t working.... are they directly related or is this just coincidence? If just a coincidence.. can anyone offer any solutions please?!

Member Avatar
Member Avatar
+0 forum 2

i am trying to put this together so it opens a file sorts the data saves a file and appends a file i have got my self so confused. can any one help???? this is the code Ive got so far. [code]import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; public class studentData { public static void main(String[] args) { FileDemo fd = new FileDemo(); fd.writeFile(); String txt = fd.readFile(); System.out.println(txt); } // write data to file report public void writeFile() { String fileName = "c:\\report.txt"; try { BufferedWriter writer = new BufferedWriter(new FileWriter(fileName,true)); writer.write("Test report."); writer.newLine(); writer.write("Line2"); writer.close(); …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I am currently trying to figure out to finish this project. Below is my code that I have so far. There are some blank methods that I am not sure where to even begin on how to complete them. I have a description of what the methods should do above them, so please help guide me on the blank methods so I can figure them out. Part of what is confusing to me is how to get the data that is read from the file and use it in the conversions since some of the data is inputted …

Member Avatar
Member Avatar
+0 forum 126

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 file named [code]C:/program files/application folder/Application Settings folder/applicationSettings.data[/code] (encrypted Text file) application used these settings to read paths other files and some other settings, this application also have the feature to print document/images using [code] PrintDocument printDocumentObj= new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(PrintPageEventHandlerFunc); ..... [/code] application prints files successfully but if …

Member Avatar
Member Avatar
+0 forum 3

The End.