7,373 Topics

Member Avatar for
Member Avatar for agentkirb

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 …

Member Avatar for agentkirb
0
128
Member Avatar for nrupparikh
Member Avatar for Liinker

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 …

Member Avatar for Liinker
0
875
Member Avatar for Paryushan

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 …

Member Avatar for Paryushan
0
80
Member Avatar for OnIIcE

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 …

0
69
Member Avatar for Excess3

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 …

Member Avatar for Excess3
0
123
Member Avatar for kischi

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 …

Member Avatar for kischi
0
95
Member Avatar for kacete

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 …

Member Avatar for kacete
0
190
Member Avatar for Joaoalex7

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 …

Member Avatar for BestJewSinceJC
0
707
Member Avatar for Mr-internet

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 …

Member Avatar for The New Normal
0
295
Member Avatar for suley04

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 = …

Member Avatar for ajay.krish123
0
728
Member Avatar for chitti1986

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 …

Member Avatar for Aneesh_Argent
0
89
Member Avatar for hakimkal

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 …

Member Avatar for Teme64
0
822
Member Avatar for Icebone1000

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for lightningrod66

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 …

Member Avatar for ingeva
0
2K
Member Avatar for Icebone1000

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] …

Member Avatar for Icebone1000
0
107
Member Avatar for suley04

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 …

Member Avatar for Ancient Dragon
0
470
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
125
Member Avatar for Droicut

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 …

Member Avatar for jholland1964
0
212
Member Avatar for Neo7

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 …

Member Avatar for Neo7
0
1K
Member Avatar for starsunited

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 …

Member Avatar for vibhutewary
0
235
Member Avatar for murderotica

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 …

Member Avatar for murderotica
0
282
Member Avatar for Typewriter

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 …

Member Avatar for hieuuk
0
205
Member Avatar for amgupt01

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 …

Member Avatar for gprest
0
176
Member Avatar for shopnobhumi

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 …

Member Avatar for jholland1964
0
102
Member Avatar for Hodson

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.

0
101
Member Avatar for aksshe10

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 …

Member Avatar for pip22
0
93
Member Avatar for codedhands

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 …

Member Avatar for codedhands
0
124
Member Avatar for scrypt3r

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 …

Member Avatar for Teme64
0
99
Member Avatar for chirutha12345

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 …

0
48
Member Avatar for Tyster

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 …

Member Avatar for quuba
0
1K
Member Avatar for BigFormat

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 …

Member Avatar for Salem
0
66
Member Avatar for vedmack

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 …

Member Avatar for stephen84s
0
73
Member Avatar for deepesh911

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 …

Member Avatar for deepesh911
0
144
Member Avatar for ogi1989

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] …

Member Avatar for Salem
0
181
Member Avatar for C0rey

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 …

0
77
Member Avatar for matt_570

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 …

Member Avatar for matt_570
0
4K
Member Avatar for Saurabhw

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 …

Member Avatar for masijade
0
71
Member Avatar for audigy642

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 …

Member Avatar for PirateTUX
0
149
Member Avatar for PomonaGrange

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 …

Member Avatar for PomonaGrange
0
153
Member Avatar for dips255

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.

Member Avatar for dips255
0
148
Member Avatar for xandres

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 …

Member Avatar for xandres
0
203
Member Avatar for brixton

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 …

Member Avatar for Lerner
0
176
Member Avatar for ohlaph

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 …

Member Avatar for StuXYZ
0
128
Member Avatar for jbennet

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 …

Member Avatar for ~s.o.s~
0
110
Member Avatar for roidel

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 …

Member Avatar for jencas
0
176
Member Avatar for gotm

[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" …

Member Avatar for nmaillet
0
95
Member Avatar for aparnesh

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 …

Member Avatar for aparnesh
0
95
Member Avatar for hkinser

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 …

Member Avatar for arbalu
0
214
Member Avatar for Headerandy

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 …

Member Avatar for Headerandy
0
116

The End.