7,373 Topics
![]() | |
I have one file with the following tab separated records with four columns.Now I am trying to convert the file into fixed length binary file. How it is possible. in C++. rs149915 29103059 A/G + rs149932 29116347 C/G - rs149933 29123223 C/G - rs149934 29084753 C/T - rs150082 29117038 A/C … | |
Heya im having a little trouble getting parts of the project to compile; [code=syntax] fscanf(fi, %f, &Max); [/code] this is continualy displaying the error message "syntax error before '%' token " i am compiling on Dev- C its probably simple but help is much appreciated thanks here is the program … | |
Hello, Several days back, I posted a message on this forum in relation to a software security issue. I had hoped to get some feedback on a potential solution, but it seems that perhaps my post was a bit too broad in its scope. I have since come up with … | |
Here is the situation: Our CentOS 5.2 server acts as a file server for Samba environment. We have multiple shares, each share has a group associated with it. Each group has multiple users associated with it. Some users are members of more than one group. For this example we would … | |
Hi I upload powerpoint file using this code: [CODE] if (File1.PostedFile !=null) //Checking for valid file { // Since the PostedFile.FileNameFileName gives the entire path we use Substring function to rip of the filename alone. string StrFileName = File1.PostedFile.FileName.Substring(File1.PostedFile.FileName.LastIndexOf("\\") + 1) ; string StrFileType = File1.PostedFile.ContentType ; int IntFileSize =File1.PostedFile.ContentLength; … | |
Trying to read a file from the user that contains numbers which i use to calculate avgs, range, number of #'s and so on. I can't get it to work tho. Any critiques and help would be much appreciated. Thanks much double grade; //variable for entered grades double sum = … | |
[ATTACH]9597[/ATTACH] ok i want to read this file into a dictionary and this is the output d={"flight":T34712, From:ABERDEEN, scheduled 0800, remark landed} etc flight is the key do i have to parse the text file i know i cant put it straight into the dictionary as i get this output … | |
Hello again, today is just not my day :( I had a problem with speed this morning and got help that totally solved it, so here goes hoping for some more help. [B]background:[/B] I have an ejb that picks up a file, copies it and the has to process the … | |
string rating(bool ozone, bool no2, bool so2) { string result; int count = 0; if(ozone == true) { count++; } if(no2 == true) count++; if(so2 == true) count++; if(count == 3) result = "Gold Star"; if(count == 2) result = "Silver Star"; if(count == 1) result = "Ok"; if(count == … | |
Hello everyone, I am having some difficulty with file handling, I hope someone can help. Here is the background: 1) I have to read a .dat file, file size varies from 692kb to 109.742kb with the following format of data: eg : ID|flag 1|y 2|y 3|y 4|y 4.37777451|y 5.52625317|y 2) … | |
Dear All, I want to open another exe file in my C++ program. Let the exe file be A.exe. So I used shell execute inside my C++ program to open the file but as A.exe writes in a file certain data that I will use in the next step of … | |
[ATTACH]9572[/ATTACH] Hello basically ive parsed a website's data into an object. I wrote it to file and read it back in to write to a dictionary. but when i read it in it reads it like 3 times. so im a bit confused as to why ad would like to … | |
I'm trying to decode a flatencoded pdf stream. I get the exception: Index was outside the bounds of the array. I don't understand because I have tried to be really exact. I Would appreciate your help on this. Here is the code I'm using. ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); byte[] … | |
I'm studying for one of my exam's and this is my first c++ class and my professor gave one of these questions for our study guide... and I'm having trouble with it. And since our final is open book and open notes he's not giving us the answers, and i've … | |
Thanks in advance for your help. The problem is this: I am supposed to read an array from a file and ask the user to input a name to search for within the file. If the name is there then return the position number in the file, if not output … | |
Hi all, Just registered on the forum. I have a quick (hopefully) question. I'm trying to read from a text file into one single string. I'm having some trouble though and can't quite find my error. I have the following code below right now. The problem is that my function … | |
Hello I am trying to make a program that converts different units. The conversion factors are stored within a txt file and i need to read them in. i have this code so far; but it doesn't work. using System; using System.IO; namespace Task3 { class TextFileReader { static void … | |
[CODE] const char* findThisMsgInMem = "Hello World! Everyone is Happy"; if(memcmp(&dataInMem[i], findThisMsgInMem, defaultMsgSize) == 0) { memcpy(&dataInMem[i], newMsg, strlen(newMsg)); //more code here }[/CODE] This is first time for me trying to use malloc, and realloc. Please see the coding example for illustration purposes. Don't worry of this lengthy question, most … | |
Hi, I have a file of approximately 4.19GB. I want to get the totall size of file using code in VC++, Here is my code [code] FILE *fptrSampleVideo = fopen(filename,"rb+"); if(fptrSampleVideo) { fseek(fptrSampleVideo,0,SEEK_END); uncompressedVideoSize = ftell(fptrSampleVideo); } [/code] If the file is of small size, ftell() return position correctly and … | |
hi everyone, i have successfully saved the image file to DB by this code: Private Sub cmdSave_Click() Dim picsm As ADODB.Stream Set picsm = New ADODB.Stream picsm.Type = adTypeBinary picsm.Open picsm.LoadFromFile filepath With rs .AddNew .Fields("Last") = txtLast.Text .Fields("First") = txtFirst .Fields("Pic") = picsm.Read .Update MsgBox "Successful" End With picsm.Close … | |
Hi, I would appreciate any help with the problem I am having. I am trying to read text from a file (currently just 'yes' or 'no') and print the out the results in this format: 1 yes 2 no 3 no etc. I have been able to write a some … | |
Whats the difference between loading an XML into a string or from a file stream? | |
Hey guys i need help. I need to write a program that computes all of the following statistics for a file and outputs the statistics to both the screen and to another file: the total number of occurrences of characters in the file, the total number of nonwhitespace characters in … | |
The file gets more kB then the original ( 114KB to 914KB) And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try to close it, with the original file it loads ok.. By … | |
Hi I am trying to process a large text file. I would like to include parameters at some places in the file. Run it through python and write out the "processed" file with the values of the parameters in the new file. Example: original file: a =1 b=2 c= param1 … | |
I'm trying to put together code that can upload multiple files to a server via HTTP. So far, I've put together code that can send one file at at time via HTTP. When I send more than one file at a time the first file is processed but then the … | |
i am able to read the nice.ls FILE. Let me explain u my nice.ls FILE content 1st column is integers dont bother abt them, 2nd column is address, i read it by using isxdigit array[6] and i am able to read the hexadecimal 3rd column is opcode , i am … | |
Hi all, Iam using file upload control in my application where user can upload single as well as multiple files & make sure file is uploaded with unique name. Also once uploaded to be able to view files in a dropdown & have a download button so selecting any file … | |
Hi check my program i have used to read a FILE( nice.ls is shown below the program). I am able to read the FILE nice.ls, but i also have to check whether it starts with interger and next i have to check the hexadecimal if no hexadecimal then it should … | |
I've been wracking my brain over the last week. I have project due soon, but I'm having a lot of trouble with certain aspects of pointers in class instances. My project is to re-design the String class library by remaking basic functions. I was given a header file and told … | |
Hi there... I'm really hoping that someone here is able to help me out...found this site while searching for possible solutions to my problem and I'm moving to the states in a couple days and would like to get this sorted before I move... ANYWAY... When I try to open … | |
Hi There, I have to do this read a list of names from an input file of my own, In main() I declared a Namelist[][] object, read several names from thefile using redirection and then print out the list. I have to add the name to the list only if … | |
Hello! I am trying to write a program that test whether a word is present in a file or not using command line argument. Here is my program. It does not work properly. Although the word I entered is present in the file, it has been saying that " the … | |
Hello I am writing a file program like that user has to input a string and that string was written to a file. From that file, that string was read to the another file changing lower case letters to upper case letters and upper case letters to lower case letters. … | |
Please help I am stuck. I am trying to retrieved text from a file named "text.txt" and reversing the contents to another file named "output". Then i have to display the contents of "output" to the console. I am able to display the reversed text to console but only from … | |
![]() | Greetings, I have reached a point where I need some help. I have a tivo at home, and I'm trying to script something that will allow me to 1.) pull the XML off of the tivo, and save the file, 2.) Take the text in the XML, and pull out … ![]() |
[CODE] String deleteString = e.getPath(); File deleteListFile = new File(deleteString); deleteListFile.delete(); [/CODE] so to talk you through it, the File object is obtained by the results by system.out.println (not shown here) ...and then I am getting the path of the file by using getpath() then i want that file path … | |
Hi, I cannot get the full physcial path of a selected file in Firefox. Code below works fine in IE. Is there other way to get full path in Firefox as well? Thanks [code] function getPath() { alert (document.formUpload.file.value); } <form name="formUpload" enctype="multipart/form-data"> Filename:<input type="file" name="file" id="file" onChange="getPath();" /> <input … | |
hi, i have a database that needs to add a files url to the database field. the thing i first want to do is create a new directory for the file and add the file to the directory, then add the url linking the file to the new dircetory. i … | |
Hello I am trying to write to a matrix[3][3] to a file [B]column by column[/B] and at the end of each column to start from the beginning. The problem is I have to seek to write at the position a01 once the first column is written then a02 and so … | |
I use process class to execute a program. The redirect standard input,out and error are set to true. So once the standard output is complete , I write the stream using ReadToEnd method of the stream. However I like to also populate a text file with data read from the … | |
Here's the problem: One of my scripts allows users to upload MS-Excel files. When uploading the file, users are also required to enter details related to the file - details like start date, stop date, a description of what the file contains, and the file ID#. This Excel file contains … | |
I going to create a central file server to store all my media files (music, HD video, etc.). This server will be accessed by multiple HTPC around the house. I plan on all the PCs and the router to support gigabit ethernet. What I would like input on is how … | |
Hello I know I may receive some grief for not inserting code correctly it is my first post... My question is this: I am reading a huge list of values from a file and I need to store these elevations into an array so they can be used to calculate … | |
I have the following code. when I run the code I have to one by one input fx,ft,apha,m,n. After I run the code: Y 10 0.5 1 10 50 Code works with this way. I writed to a file called "d:\\a.txt" this values(that is upper values).I tried to work the … | |
I am writing a program that allows for people to answer simple questions on Capital Cities of the world. The main program works flawlessly, but I decided to add in a new function that records the user's answers to a question if they get it incorrect and posts it in … | |
HI, My website has an import csv feature. how can I identify that user uploaded a csv file. when I make uploaded csv file from two different systems it shown two separate types like 'application/download' and 'application/octet-stream'. It is confusing. Is there any idea to validate a csv file. file … | |
Hi, I am trying to implement a client server wherein the client must be able to download a requested file off the server and upload a file onto the server. I have implemented the download part of the code using TCP Sockets. In the upload part from the client to … | |
hey ol, i dnt hav much time left to solve des Q's.. can u plz guide me solving des... Fundamental Exercise /* class design, dynamic memory allocation and operator overloading */ 1. Write a program to implement Matrix class. • Implement addition and multiplication operation • row and col of … | |
The End.