6,015 Topics
![]() | |
and my code to write into a file is ofstream file; file.open("CustomerFile.txt",ios::app); file.write((char *) & customer,sizeof Customer); file.close(); file.open("AccountFile.txt",ios::app); file.write((char *)& account,sizeof Account); file.close(); can someone figure out my mistakes. Thanks in advance | |
fstream file; file.open("PasswordGenFile.dat",ios::out); In writing into a .dat file what does the following line mean? file.write((char *) this, sizeof(PasswordGenerator)); And how can i convert this bit of code if i want to write it into a .txt file? | |
Hey guys, I'm having the most toughest time of my life to figure out a way to upload video files using PHP. I am able to upload images but not video files or zip files. I haven't put any file extension check right now. Here is my code, will you … | |
Hi guys. I'm working on a christmas present for my dad, it's a program that installs 8 Black Keys songs on his computer. I'm having some trouble with it though. I can't figure out how to get the files out of the jar file. I used to access them with … | |
Hello, I am using turbo c++ 4.0. I know its outdated but i have to use turbo c++ for this project. Here is my current code, #include<iostream.h> #include <stdlib.h> #include <fstream.h> class item { private: char name[]; int code[]; float price[]; int z; fstream datfile; public: void add(void); void delete_(void); … | |
I have a move function which moves the files from one folder to another folder.. I am wondering how can i show the total numbers of files moved and moved filenames in a dialog box. or any idea..!!!! Here the problem is Once i press Move all the files moving, … | |
I want to make a form application that upload torrent file in bytebx.com using my username and password Could any one help me? Torrent uploading header request like : http://bytebx.com/storage POST /storage HTTP/1.1 Host: bytebx.com User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate … | |
Hi all My old old vb5 app does everything I want as far as mpg video goes. Random video and play a random segment. Fast forward and reverse. random groupings of large font, video segments and or pictures and audio I need the code to provide me with the file … | |
I have a requirement to update a configuration file content at a specific lines location. How to do this in python. For example, I have a configuration file which is having below 5 lines now: define host{ name kiki-server; XXXX XXXX; XXXX XXXX; } I am interested have my python … | |
Group, In a post in VB 4/5/6, I question how to open a file with a wildcard as the file extension ([https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/488809/accessing-a-file-with-a-ever-changing-name](null). That worked fine for VBA. However I'm trying to do the same thing using VB.net. I'm having trouble finding the correct syntax. I hope you can help. Specifically, … | |
Dear user I write a file upload code in php, the code work's fine but it will upload the file 50kb to 60kb, when i try to upload more then 50kb to 60 kb file then the page stuck on loading. The problem is why it is not uploading more … | |
so I've reverse-engineered Tkinter's tkfiledialog functions askopenfilename and asksaveasfilename to figure out how they work: import Tkinter class Open: "Ask for a filename to open" def __init__(self, master=None, **options): self.master, self.options = master, options if not master and options.get('parent'): self.master = options['parent'] def _fixoptions(self): try: self.options["filetypes"] = tuple(self.options["filetypes"]) # make … | |
I've been working on this in other places so it's a little ahead of it's time, but it still has a few minor issues... heh here's an example to get started: x = struct( 12, # struct size 'x,y,z', # variable order x = bf32, y = bf32, z = … | |
I'm trying to write code in VBA in Excel that opens a desginated directory, finds all xls and xlsx files and then converts them to csv. I found two sets of code that do one or the other perfectly, but I can't make it work. I'm sure I'm just missing … | |
Hello everyone! Is there a way in VBA to find a file name that has an unknown portion to it? Let me explain: Our computer system is UNIX based. It is creating a text file for us that uses the date, the hour, minutes and seconds that the file was … | |
Hello, I am stuck on a part of my code, where I need to decode a file. I have searched and exhausted every forum I could find to see if other people have maybe had the same issue and solved it. However, I haven't found anything. Here is what I … | |
Hello to all, I have a console executable file that I run from DOS console passing some options and an input file. I'd like to give to this exe file a GUI. I'd like that the GUI was a new exe file that could contain inside my console exe file … | |
Hi everyone, I haven't touch in vb6 in 12 years so im very rusty... :s But now i need a little exe that allow to open and view office and pdf files, i dont need it to save or allow changes. Since its going to work with a batch file … | |
Hi guys, After 10 days of googling and trying I finally must ask. This is not an assignment for school but its a practise one for the upcoming assignment in a few weeks. So i have the weights of 200 oranges in a csv file. With this csv file i … | |
hello i had trouble in finding out whats wrong with my code I want to sort the data's from my text file and it somehow did but some of the words did not appear. word.txt hello apple hi banana mango the output I get is : hello hello hi hi … | |
is it possible for me to use user-uploaded data ,such as tab delimited data in a text file, only in memory? this is because i dont want to save the files in the server. | |
hey, I need to read from a file but withput using string... I tried this... // reading a text file // reading a text file #include <iostream> #include <fstream> #include <string> using namespace std; int main () { char line[120]; ifstream myfile ("example.txt"); if (myfile.is_open()) { while ( getline (myfile,line) … | |
Dear all, I am trying to edit the .resx file (Form1.resx) so I can localize my application for different settings. However, when I edit my .resx file and then view it in Visual Studio, I get an error "ResX file Data at the root level is invalid. Line 1, position … | |
I am working on a shell script that takes a single command line parameter, a file path (might be relative or absolute). The script should examine that file and print a single line consisting of the phrase: Windows ASCII if the files is an ASCII text file with CR/LF line … | |
Hi Guys! I'm having problem with uploading the file to the server. This is my code. $path = "Files/01 Admin Procedure/" . basename($_FILES["txtFilename"]["name"]); $x = move_uploaded_file($_FILES['txtFilename']['tmp_name'], $path); //Move file to directory if ($x) { echo "<script>alert('File " . basename( $_FILES["txtFilename"]["name"]) . " has been uploaded!')</script>"; } else { echo "<script>alert('Error … | |
I wrote a java program/application and I'm trying to combine all the .class files into one .exe file. I want to have a convenient double-clickable EXE file to launch the program without the user having to handle .java file associations. | |
Hey there, So I've been searching for method to replcace on particular line in an UTF-8 (easily readable and copy-paste) file. I found lots of methods that were searching for matches in rows and replacing them. It was mentioned very often that it's impossible to replace a row in text … | |
Hi i have been roaming for codes everywhere couldnt even one of what i wanted I am a new beginner and i dont understand their codes .. Would someone here be kind enough to show me how to exchange files within sockets This is my code for the server -------------------SERVER------------------ … | |
I have a txt file with 5 integers, then from standard input if I entered 1 it will output 10 if I entered 3 it will output 30. I put mine in an array, I just want to know if its possible to not put it in an array and … | |
Okay I have a html upload form here, What is does is displays a browse button so users can upload files to my site, what I want them to be able to do is completly rename the file that they are uploading once they upload it to my site, but … | |
Hi, I am just starting with php and i have been trying to get these two pieces of code to act right. Like they are shown everything works just fine. What i need this to do is find a certain html code on a page then write to the next … | |
Hello I am trying to build a file upload page where a user can upload files and different messages appear on screen to the user of, for example, the name and size of the file successfully uploaded, whether or not he has even selected a file to be uploaded, and … | |
Hi guys i have problem in my code when i try to copy image jpg from local disk in any place to network path DOMAIN it give me error the process cannot access the file it using by another process file why this message show and how to solve.the error … | |
Hi , any one can help me code for how to parse the below file. -*: M V3.1SP0010*20140925 #-+: 131854 # PROLIM Package V20.02 { FILE = "54377948"; COMM = "U:fe "S; { COMM = "FE_slt"S; SEQ = "FE_crt"; SEQID = "FE_slt"; MEMO = " "S; SA = HEAD; PORI … | |
I'm fairly new to C++, I've only been learning it for 4 months now and I've been having problems with a template class file that i was creating for my project i kept getting the error [QUOTE] main.obj : error LNK2019: unresolved external symbol "public: __thiscall Intervals<float>::Intervals<float>(float,float)" (??0?$Intervals@M@@QAE@MM@Z) referenced in … | |
Hello friends, Please help me to sort out my problem , actually it is strange one and don't know why it appears. Actually I was trying to make a file upload form which I got success although a bit. A bit in the sense, if I include just <form> in … | |
Hello, I'm trying to create somekind of a process that will allow me to delete files in TEMP folder. Its bascially a shortcut from desktop.When you click that you can delete files in TEMP directory. Thanks | |
Hello! I'm new to Python,so I'm sorry if it's a simple question. I have a text file where each line contains a path.Under some of the "final" subdirectories there are 1 or 2 lines that contain some values.The text file looks like this: folder1 folder1\folder2 folder1\folder2\folder3 'something1','something2' folder4 folder4\folder5 folder4\folder5\folder6 … | |
Ok, so I have been trying to google the heck out of this thing to absolutely no avail and I'm really and truly stuck! The assignment, as posed to the class by my operating systems concepts teacher, was to start work on creating a file system. To begin with, he … | |
Hi fellow members of Daniweb. I've been working on project for the past few days now, and have come across a bump, that i am unable to pass. The project, when finished, will do the following: 1. Select DBF file from computer location (Default C:) 2. Import the database file … | |
Hello I have write some code to read a specific word from a text file. The file is located in a specific folder. In the folder there are multiple files, i want to read first the file that is upload first in the directory. After I have read file, I … | |
Using: Visual Studio Language: Visual Basic I already loaded a xml file to my datagrid already, what i am trying to do is have the option to save the datagrid data back as an xml file. I have the code, but how do I close the original xml file that … | |
Hi, So for an assignment i had to read input from a file and then output it. The information in the file was in the following format: 1 line with a stock symbol and the next line with the quantiti bought. eg of a file that we'd use .ab 15 … | |
So after scanning a file, I am to format it and output it following these guidelines: -Lines are trimmed to remove any leading or trailing white space. Note that String has a method trim() that removes leading/trailing white space. A trimmed line is displayed with X leading spaces … | |
Hi...i would like to save and edit some excel files located in server using php. The coding below upload the file but when i open the page again...the message 'no file chosen' appears. Please help on this matter...thanks a lot... <?php error_reporting(E_ALL ^ E_NOTICE); $_SESSION['Targetid']; $_SESSION["Progressid"]; $conn = mysql_connect("localhost","pqa",""); mysql_select_db("pq",$conn); … | |
![]() | Hi All, Been a bit bored, so went at it to create a class from some long procedural stuff I found littered in various guises all over the web. The code I used as a base for the class came from [here](http://www.codediesel.com/php/downloading-gmail-attachments-using-php/). As this uses IMAP functions and many of … |
![]() | Would anybody know of a way to take a text file and break it up on specific lines? For example, let's say I have a text file such as "This is my text file". I want to split it up like "This is" "my text" "file". Therefore I want to … ![]() |
Are you think Directory submission is help in SEO ..and through i get PR.how many links we submitt in one directory .i know from you guys Role of directory submission in SEO.? | |
i want to create a directory file in vb6 . please help !!!! | |
>Take Heed There are lots of things to be aware of with the Windows Registry. In most cases the best thing to be aware of is that ideally you should avoid playing with it at all costs. Alas, we are what we are and we do what we do. My … |
The End.