7,373 Topics
![]() | |
I have written a CString Object into Text file by using : f.Write (&FileName,FileName.GetLength());//FileName is CString Object Now I want to Read CString object back How this could be done?I am using code : LPTSTR p = CurrentLanguageName.GetBuffer(11); void *g=(void *)p; f.Read (g,CurrentLanguageFileLen); CurrentLanguageName.ReleaseBuffer( ); //But this method don't work. … | |
this happened after installing a Logitech driver and the restore features haven't done anything to help me out. It seems to be limited to something the computer loads on a normal startup because it will hang or have problems after about 5 min. but there will be no problems at … | |
what is niche directory ? whats the diffrence between niche directory and general directory ? | |
the last record is getting displayed twice.i hv rechecked everything and cudnt find the error. here is the add n display function. [code=c++] void add() { example abc; int n; ofstream file1("EXAMPLE.dat", ios::binary|ios::app); cout<<"Enter Number Of Records To Add "; cin>>n; cout<<endl; for ( int i = 0; i < … | |
I have a file that is representing an image, here's the puddle.img file: 10 22 2222888222882222228882 2222888222882222228882 3333333333333333333333 1111111111111111111111 1111144444111111111111 1111444444411551111111 1114643434345551111111 1111333333311551111111 1111133333111111115114 1111111111111111115543 The first two numbers are the size of the image, rows and then columns. Then I have to pull in the image, and before the … | |
Our group has been banging our head against the wall in this one and cannot seem to figure it out. Our program is to be able to set up menus (done), allow user(s) to input 'student names' and save them to a data (*.dat) file and add names to the … | |
I have this program for computing an individual's cable bill, then summing each column of values and calculating the average of each column. I got a 100 on the assignment, the program works fine, but this time we have to use functions. I created my functions and the program, again, … | |
Hi all, I want to read a stream of bites/bytes as a String. Here's what I have done up to now. Using a buffer I found that number of bytes, which include a text message from a binary file. Now what I want is to read those bytes stream as … | |
Hi, I need help to sort a file. I am able to open the file, but the lines of the text file are separate by commas and I have to separate the lines into 4 differents string of characters. I have problems separating the string and sorting them by name. … | |
ok so i made a code that makes something compatible with a never version ( it is not important). This is my code: [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main () { char File[150], re[4]; string line[5000]; string response; int counter=0; size_t found; string strtofind[]={"oolean1", "oolean2", … | |
I'm still confused with file i/o here and needs a bit of help on fixing the codes I have. Can anyone offer some help? I have two codes here that sort of work together. One is a database type of code that is supposed to get input form the user … | |
Last week I got Adobe Flash CS3, DreamWeaver CS3, and Fireworks CS3 installed on my computer. I installed them without removing the previous versions (Macrodedia Flash 8 Pro, DreamWeaver MX, and Fireworks MX). At this time I could open swf files in IE6 and it would be able to show … | |
I want to make a code that searches a text file and finds a certain string, and then changes that string to another string. First im going to have it input the whole file, and i am couting it too, so that i can make sure it worked. But it … | |
I am new to networking and have a query/question. I have two computers (one Windows XP and the other Windows Vista) and I have connected both to a combined broadband modem/router with built in firewall. Therefore, when I use the network setup wizard in XP I keep getting the message … | |
I'm having problems writing records to an output file. When I do it in Textpad running on Windows, the output file looks fine. When, however, I copy the script to a Linux machine and use the exact same code, it appends a ^M character on each line written to the … | |
ok, so I have read some tutorials on file streams, but i am still confused. I have made a program that edits a .txt (inputted by user) file, but my goal is to search an entire file for a string, and every time the string its found, I want it … | |
I've seen tons of examples, but I can't seem to find what I need. I'm pretty new to programming, only been doing it for 9 months. Here's what I'm trying to do. I'm loading a file with the below info. 12 Item1 15 1 Item2 10 1 Item3 1 2 … ![]() | |
wondering how this script might work please. [code]<link rel="alternate" type="application/rss+xml" title="CHUCK WHATEVER YOU WANT IN HERE" href="http://thecodingzone.com/if_rss.php?input=YOUR BOARD URL&title=FEED TITLE HERE REMEMBERING THE FACT YOU HAVE TO ENCODE SPACES IN URLS" />[/code] the rss.php part [code] - <rss version="0.91"> - <channel> <title>Feed generated by TCZ</title> <link>http://thecodingzone.com/</link> <description>Nearly 400 IF codes … | |
Hello Everybody, i am developing a software that will have as one of its component a conversion studio. what will go on here is u can convert between some video formats an audio formats as well( like from avi to mpeg, wav to audio,mp3 etc) i want help on some … | |
Hi, Does anyone know how I can get the file name for the linked tables? I have linked the tables and renamed them. I am able to get the renamed name shown on table tab, but not the actual FILE NAME that i originaly linked the table. I am using … | |
Hey guys trying to compile code, and heres the error I receive. im fairly new to python programming so any help would be appreciated. thanks in advance. ms7538@ms:~/Desktop$ ./test.py Traceback (most recent call last): File "./test.py", line 10, in <module> class Panel1(wx.Panel): File "./test.py", line 22, in Panel1 bmp = … | |
So I have a program with a specification file, implementation file, and a client file, I'll post all three but I know the problem rests in the client file. What's happening is that it reads the first team from my data file which I'll also post, and then it doesn't … | |
whats up everybody? havent been on daniweb in a while. self-motivation like whut....until now. anyways ive got this script that makes an html form with 19 or so fields. its supposed to put the form info into a file (mediaRequest_log.txt). it gets this information by way of [code=perl] # get … | |
Well, I'm not sure how other people do it, but eh, for some reason VB makes my task excessively difficult, because it is so inter-dependent and integrated. Now, HTMLDocument, is a Document interface for...go figure...an Html Document. However, I can't use it. I can only get to it via a … | |
I am a beginner in C++ and I need some help because my decoding is coming out as a series of numbers. Here are the detail as to what I am trying to do. I wrote 2 programs that compress and decompress a text file, each taking input and out … | |
hi. i am kind of stuck and i need some help. i have a dll and a .cs file. i have opened the .cs file and it contains a class. i asume that the class and the dll works together. sort of like a cpp header file and class file. … | |
I'll explain my issue in this way. I've use a structure to get some data of a byte stream as follows. [CODE] 1. struct pac_cont 2. { 3. unsigned int des_list ; 4. unsigned int mem_ID ; 5. unsigned char dm_con ; 6. unsigned char ser_ID ; 7. unsigned short … | |
I have been working on this problem since last week and I about to go insane. I got it working and then all of the sudden it got screwed up. I want to know if someone can help me find out what I am doing wrong to fix it again. … | |
Hello! Please help me!!! I have been trying to make a program that show details written on a csv file. Somehow I have managed to do so, by using a code for opening *txt files. However, I would also need to add details to the same csv file, and delete … | |
Hi all, I want to use a function to write some values to a text file. That function is called from the main function. Every time when I can that function from main, the perviously written value is overwrite. That's true, it wont work. So what I have done is … | |
Hai.... To print Html page using PrintDialog and Print Document i am created one windows appication.. the windows application have many pages in my booking page i have two buttons one btnprint,btnclose i am go to click btnprint button and corresponding i reader one html file . then in local … | |
Good Afternoon Everyone I Just Wanna Make My Code User Frindly . I Have To Extract .dbf Files . 2. Process Them.(makin .prn ) 3.stop. 4.selectin Another .dbf File. 5. Process It . 6. Stop. My Code Is Able To Process One .dbf File But If I have 20,30, ....n … | |
Just wanted to know if anyone can helpl. Just installed Medieval 2 total war, ran fine for the first hour then CTD. After that every time i try running the game the intro flickers, is distorted and generally messed up. I've spent the past 2 days trying everything, all my … | |
Hi, Looking for suggestions here I have two locations with two pc's at each....both ;locations have highspeed internet access. I need to set up file sharing and printer sharing between the two locations......any suggestions as to how to proceed? at one end is XP, at the other end is ME | |
I have a binary file, contain set of stream, and I want to find some information there. What I have done up to now is read the file, open it and count the number of streams three. I'm stuck now. Just consider one stream. I want to skip first 4 … | |
Greetings. I'm currently doing a project on Traveling Salesman Problem. But I'm not asking for answers for the whole project. I just started my programming lessons so I hope can get some help from all of you. About this project: Initially you have to read 2 input files, Input1.txt and … ![]() | |
How to write these file datas in the new file...It should be done by wrting bytes into characters import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; public class fileread { public static void main(String[] args) { File file = new File("E:\\ir_Proj estimate_out.txt"); byte[] b = new byte[(int) file.length()]; … | |
i have this code: include('DB_connection.php'); $result = mysql_query('select * from login'); $count = mysql_num_fields($result); for ($i = 0; $i < $count; $i++){ $header .= mysql_field_name($result, $i)."\t"; } while($row = mysql_fetch_row($result)){ $line = ''; foreach($row as $value){ if(!isset($value) || $value == ""){ $value = "\t"; }else{ # important to escape any … | |
- Hi, I have an XML file that is a "Now Playing" title file generated by a radio software. I am trying to FTP this file to my web site. However, the file is missing the header tag & the end tag. I know I have to put in an … | |
Just wondering, if anyone has got a library or good link to parse a config file. If not is there any effcient way of hanlding config file, where the config is just normal text file. Its not XML file or anything. ssharish | |
When I clikc on any excel file in My Documents, open Excel (Office 2003) without choosed file (grey background). After thet I must open file with File/Open and choose file. I has looked in Options but I can't find what is not good. Thanks... | |
I have one doubt about WAR file........ Like i am creating a project with mysql databse and deploying it through WAR file My question is if i want to deploy it on some other machine then i am copying war file there in webapps folder.........but do you think it war … | |
I have one doubt about WAR file........ Like i am creating a project with mysql databse and deploying it through WAR file My question is if i want to deploy it on some other machine then i am copying war file there in webapps folder.........but do you think it war … | |
[B]How do I convert a FILE* to an IStream![/B] Using GDI+, I want to save an HBITMAP to a disk file as JPG. However, I am doing this within a legacy function that provides an already opened FILE* as a parameter. I have found nothing in the docs. [code=c++] static … | |
can anyone tell me if it is possible to open and read or write to files by using javascript? basically what i would need is something like random access files and to use them in javascript in the same way that i can in any programming language. or is there … | |
I am currently developing audio player project in vb6. i have downloaded a dll file named "WinampPluginWrapper.dll" i make this dll file methods inherit from vb class. But i try to execute the file i got error that " WinampPluginWrapper.dll" not found. Then i Placed this dll file available to … | |
Hi all, I've written a configuration file parser, which is just basically gets a bunch of rules, each ended by ';' To get the rules I use a loop: [CODE] ifstream cfgFile; for (int iI = 0; iI < iMAX_MONITORS; iI ++) { ... cfgFile >> someFloat; // test for … ![]() | |
I try to open excel file in visual basic 6. Somebody gave me this code to open excel file. But when i create a my new form and type this code. An error occured for this code Private Sub Form_Load() Dim x_app As Excel.Application Dim x_wbk As Excel.Workbook Dim x_wsh … | |
While I am Downloading ,One Dialogbox will open.When user will be saving file name...that time I want to restrict user to change the file name ..I have written code below for downloading file. Dim fs As System.IO.FileStream = Nothing fs = File.Open(Server.MapPath("TextFiles/Branch/" + filenam + ".txt"), System.IO.FileMode.Open) Dim btFile(fs.Length) As … | |
Hi all, I have just start to work on C++. I want to open a text file, then write few text there. This is the code I wrote for that. [CODE]#include <iostream> #include <fstream> using namespace std; int main() { ofstream file; file.open ("example.txt"); if(file.is_open()) { file << "Write a … |
The End.