7,373 Topics
![]() | |
I'm making a program, and I'm at the beginning where I'm just reading the information in. The goal of this short bit of code is to read in a date (when I finish the program it should be able to read in multiple dates from a file, but I'm keeping … | |
I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it … | |
Hi, I am trying to find and replace a particular string in a file and save that file. Here is what I did, where I am writing the output after replacement into new file. I was trying to avoid to open the file for writing and try to use just … | |
Hi, im trying to create a image editor and Im currently working on a "history/reopen" image part in my menu. ive read loads into dynamicly creating menu items but have always failed when it has come to adding a function to it, but that is a differnt story all together … | |
Hello ,, i need to write to opened file in w+ mode.. now the problem is that first off all i need to check first string in each line if he the same to value i want to enter , dont enter and print error : in another words i … | |
Hi I am trying to upload an excel file to the server. But it won't work, every time I am trying to upload an xls file and press the button. it writes: No file was uploaded. as if i had no file. you are welcome to try on: http://radio.web.surftown.dk/admin/indset_program.aspx the … | |
Hey guys, I'm having another problem (two actually) with a function that reads 5 variables (type [B]int[/B]) stored in an text file, separated by lines ([B]\n[/B]) and then it returns them to use in the main() program. The thing is, I do not know how to return them to the … | |
Hello I'm having some trouble writing to text and object files in java. Basically i need to delete the contents of the file before i write the new information on it...which i'm not being able to do. well this is what i have in terms of code for the text … | |
![]() | I just bought two gigs of RAM. However, when installed, upon startup, after the windows XP loading screen, my screen just goes black. I checked online and apparently my motherboard supports a max of 2gb. I tried 1.5, using my old RAM, same result. http://www.measham.force9.co.uk/advent/pc/3316.htm my pc/motherboard. However, my video … |
here is my code so far: [CODE] #include <stdio.h> #include <string.h> struct sale { int week; int units; int price; char name[30]; }; int main(int argc, char *argv[]) { int week = 0; int units = 0; int price = 0; char name[30]; int count = 13; int i = … | |
Hi I am Raviteja new to web development. I need to upload a file to a server say "abc" and later i have to us the path of the file that is uploaded to a server.I am using VB.I know how to upload the files to a local client folder(say … | |
I hope it helps you, It is a sub proceedure with with a file open dialog object called "ofd" and the event object is called "cmdcopy" the text on the cmdcopy object is "Copy". I leave you to fiddle with the snippet. [CODE] Private Sub cmdcopy_Click(ByVal sender As System.Object, ByVal … | |
I have a file with record times, i need take each time and compare it whit the actual player time, so if the player time is < then the best time:input player time on top, if is >, then compare whit the next time and so... the problem is until … | |
I don't know the proper term for this, but here is what I want to do: read data from an external .txt file or .doc file into html page. If the file is changed and re-saved, the website automatically changes as well. I know that css style sheets are similar … ![]() | |
Hi, Im trying to write to specific points in a file, but the write() erases everything in the document..heres what im doing: the file: [CODE] mode 0 ; level 0 ; menu 1 ; [/CODE] the code: [CODE=C++] ofstream data_w_fil; data_w_fil.open("data.gsp"); data_w_fil.seekp(7); data_w_fil.write(mode, 1); data_w_fil.seekp(18); data_w_fil.write(level,1); data_w_fil.seekp(28); data_w_fil.write(menu, 1); [/CODE] … | |
First of all, let me just say that, this is the 1st time I have ever programmed in C, so please be gentle :S (although it shouldn't be that bad). With regards to the program, I have been set a scenario to create a sales system where the user enters … | |
I use ctypes to play AUDIO using bass.dll found here: [url]http://www.un4seen.com/[/url] I have gone so far and tried as they advised me at their forum entry here: [url]http://www.un4seen.com/forum/?topic=9257.0[/url] But I still get errors. Can anyone take code and analyze to point out source of error? Here is the code, pse … | |
Hello, lately I got infected by a Trojan and it was linked to a couple of exe manager.exe irc.exe hosts.exe downloader.exe So, Windows Defender picked up irc.exe on a scheduled scan and cleared it awhile back. Until I realised that it originated from a file I downloaded and I deleted … | |
Hi everybody!! I would like to save a text file in Shift-Jis format but by default the file is always save in UTF-8. I'm using fopen, fput and fclose to create and work with that file, but I don't think that there is any parameter for those functions which can … | |
i have a question. my function works in a way that once user clicks the link, the open save dialog box will pop out then the user have a option to choose whether to open or save the mp3 file. The problem is the save function can wrk meaning if … | |
Hello there, I've been busy nowadays with file manipulation and I've so far I've encountered a small problem in appending the contents of a file to another file. This is what I did: [CODE] string filename = @"C:\Temp.txt"; string body = null; StreamReader sr = File.OpenText(files); body = sr.ReadToEnd(); StreamWriter … | |
Hi, I'm pretty new to using C# and have come across a problem that I thought would be pretty simple, and it probably is but I'm stuck. I'm trying to get a user to select a file using a file dialog box and once that has been selected to get … | |
Hi guys, I am a beginner to Java (I'm only a freshman in high school) and I'm working on a project which involves the need for me to be able to store 11 different strings as a text file. I have it storing the strings with multiple lines so I … | |
everytime i open my browser(both firefox,ie) another website opens with that such as [url]http://online-securityscanner.com/2009/1/en/_freescan.php?nu=770522170802[/url] and so on after saying my computer has virus which obviously is a spyware.. i tried using spybot, ad-aware and so on but did not work. here is the log file from hijack this. Please help … | |
I'm trying to use -e (file exists) but I keep getting: -e: Event not found. Any ideas as to why this is happening? (I am new to this) I am using csh not bash. | |
due to power faliure i found some errors on my pc 1.sometimes while booting the login screen doesnot apper instead just a black screen with a cursor (which works) 2.When ever i use chkdsk it shows at boot time unable to run autochk 3.I used convert command it showed cannot … | |
Hello,am newbie in python.Am trying to write a function that deletes urls in a file.The function accepts the url to be deleted as an argument.I want to use regular expression to match the url in the file and then delete it(maybe replacing it with a white space).My problem is that … | |
I Recently Tried To get An App To copy itself To startup folder [CODE] My.Computer.Filesystem.Copyfile(application.executeablepath(),"C:\Documents and Settings\All Users\Start Menu\Programs\Startup") [/CODE] But It Wont Work, A possible solution i thought up is getting the app to place a [I]Shortcut[/I] of itself there, but i do not know how to create shortcuts … | |
hai friends, I am developing a job portal applicaton using sqlserver ,asp .net, c# .net. i completed the uploading the resume file into database.i am getting a problem. while upload a file my client says the file download and while the application it can be opened in the browser.but how … | |
Hi Folks, I am encountering what I think is a simple problem but I haven't been able to solve it. I am trying to parse a simple XML file and I keep getting the following exception... Exception in thread "main" javax.xml.transform.TransformerException: A location step was expected following the '/' or … | |
I need to list the files in my current directory and have them packed into an array of chars, in Linux. I use system("ls > temp_file"); to write them one per row in a temp file, and then I copy from this file to my string. Is there a more … | |
Hi, i got the following situation: When user clicks on some link, I'm entering a servlet in which I'm copying a file to a network drive, and than I want to open this file on the Client side, for example the file to be opened is a .pdf file. I … | |
My laptop isn't the same anymore. I am currently using a Windows XP MCE and it has a 1 GB RAM. I recently installed Avast and managed to uninstall Symantec thanks to this forum. I have a feeling that Avast could be part of the cause of the slow start … | |
I'm trying to read from a text file.I think that everything is correct!It gives me this error message: Debug Assertion Failed! Program: D:\Test\sign.exe File: fscanf.c Expression: stream != NULL For information on how your program can cause assertion failure, see the Visual C++ documentation on asserts. CAN SOMEONE HELP? [code=cplusplus] … | |
Hello all, I'm new to VB .Net, I found this open source file editor. Its can read unicode text fine, but its doesn't save unicode and its read only ITST01 and not QEST01. How to make its detect both and save as unicode? Here is the file format. [CODE] BSTR … | |
Hey I have to write a program that reads a text file that contains a list of words, 1 word per line. I have to store the unique words and count the occurrences of each unique word. When the file is completely read, I have to print the words and … | |
Hi, My problem is that I have to upload a CSV file from Client Machine (Windows) to Unix Application Server. I am using JSP method post and multipart/form-data (as in [url]http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml)[/url]. The file is uploaded fine but the problem is it displays carraige Return (^M) a square boxes on Unix … | |
Well, I fixed the runtime error now it just opened to a new bag of worms. I get to see the actual error thats there and it tells me that access is denied to this certain file. Easy enough, change the access to the file right? Wrong... can't find the … | |
Hi all. I am having a little trouble trying to get a small script to work. What I am trying to do is create a page to use with DADA mail mailing list software. I would like this page to search through the DADA mail text file of email address … | |
hi, i need some advise regarding storage of data is it good to store data in files rather than storing into database? (eg data like comments or additional features of products that users advertise on our website.) will it help for speed optimization. | |
I need to make a seating reservation system for my assignment and I have to manage .dat files. I have to store all Student objects in a file. When a student is registered, a new object is created and I need to add it to the archive. But as far … | |
Hello there, I'm learning file I/O in c++ ATM and I'm getting a strange problem when I'm (at least I think so) following a tutorial. What I'm doing is simply writing a User object to a file and then read that same object from the file. I'm doing this just … | |
Hello, I have a program that I'm writing and it seems to just stop. I've looked at the code and I can't seem to figure it out. This is for a class, so please don't just fix it, but please tell me how to go about fixing it, I want … | |
basically i have a 3d array of chars, i need to be able to save and load it using text files. Any as to how i would actually do it? Im familiar with reading lines using BuffererdReader and stuff. Im thinking use a loop to save each element to a … | |
Hi, i found this code from an article, i want to compile this code, buat I don't have file polygon.h. Can you send file polygon.h to me, because i have search from any web buat i don't find it. This the code [code=c] #include<stdio.h> #include<conio.h> #include<windows.h> #include<math.h> #include<stdlib.h> #include<GL/glut.h> #define … ![]() | |
[CODE=C++]#include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> #include <stdio.h> #include <time.h> using namespace std; bool StringToInt(const string &s, int &i); int main() { // opening up and setting up the input file stream so we can read it // to perform the "account info" and the "history" … | |
I am developing a site that will allow the users to download files. The files could be of various types - documents, images, applications, etc. I am using a simple link to offer the download <A HREF="File_To_Download"> Download </A> If the browser does not support the type of file being … | |
Hello everyone. I've read several articles on the internet in trying to figure this out; however, those article seem a bit over my head apparently and I can't seem to find a code example that is simple and to the point to implement. I'm coding a password manager program in … | |
Hi friends , :( I've made a programme that can read a file and if it finds a peticular string in the file it shows the whole line. I've used "stringstream" to extractone by one and I checked that by the If loop on true condition it prints the whole … |
The End.