6,015 Topics

Member Avatar for
Member Avatar for uniquereason

I am trying to create a program that compares two files that contain letters from A to E. Both files have 20 of them. Now im just stuck i feel that i could use if statements but i don't know how to go along with it. Any help will be …

Member Avatar for Nick Evan
0
182
Member Avatar for robinotje

Hello everybody, I was trying to make a telephone directory, when I ran in to several problems with the compiling. When I fixed these, I saw that the programm wasn't working as I want it to work :) Can anyone tell me what I did wrong, and try to help …

Member Avatar for WaltP
0
454
Member Avatar for iamfabian

Totally new to C++, so please forgive me... I'm trying to have a user input a filename and then check the file for all string literals. The output should return the string literal (not the whole line, which is what I am getting). Also, I have to ensure it ignores …

Member Avatar for tetron
0
405
Member Avatar for coollife

this is in windows project i have one form which has a progress bar from that i am calling a class file which has decrypting function in it while it performs decryption of a file i want to show the progress of decryption in my form now how do i …

Member Avatar for Geekitygeek
0
187
Member Avatar for hannon565

Hey am trying to read contents of a text file into memory and will be read later by a different function. This is how i am considering doing it I was thinking of reading the whole file into an array but thought it might be too big seeing as file …

Member Avatar for Nick Evan
0
3K
Member Avatar for Venom Rush

Hi all I have a form where a user can upload a file. I do a check to see if it's a zip file. If it isn't then its supposed to stop the file from being uploaded. Only thing is, the file still uploads regardless of getting the error or …

Member Avatar for Venom Rush
0
96
Member Avatar for brunop

Hi Everybody, Please someone help me! I need to register in the database when the user finishes to download a file. One solution is: I could save the log when the user clicked the link to download the file. But, the great problem is that my boss wants me to …

0
41
Member Avatar for tjsail

Is it possible to read a file as lines are written to it but not lose your location in the file? As in there is a program that will write lines of text to a file until it reaches 2.4MB. I want to read this file as these lines of …

Member Avatar for tjsail
0
136
Member Avatar for older3

[CODE] var t:array[1..3,1..3] of integer; i,j:byte; v:text; begin for i:=1 to 3 do for j:=1 to 3 do begin write('Enter elements [',i,',',j,'] '); readln(t[i,j]); end; assign(v,'output.txt'); rewrite(v); for i:= 3 downto 1 do begin for j:= 1 to 3 do write(v, t[i,j], ' ' ); writeln(v); end; close(v); end. [/CODE] …

Member Avatar for FlamingClaw
0
168
Member Avatar for devsprasad

Hi, I am wondering about how to insert an image(.png) file into excel sheet using python.I have also tried converting .png file into .bmp file, but met with no success. I have tried using insert_bitmap() function, it doesn't give any exceptions. But the resulting excel file that is created is …

Member Avatar for devsprasad
0
33
Member Avatar for tetron

I have a std::string (char *, std::string::size_t ) constructor failing and I am not sure why. For my small test file there was no problem, but when using ifstream::read() with an unsigned int sz of 1Gb (1073741824) (I think that I used a pos_type 1st time) and the resulting char* …

Member Avatar for tetron
0
211
Member Avatar for tetron

I am having problems with the new operator() specifically within std::string I appear to have hit a memory limit in visual studio. Ideally I would like someone to help me find one of the following solutions: 1 - Can I access the memory in a very big file directly without …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for samuel_cyk

I wrote a code to send file as below: [CODE]Dim objXMLDoc As New XmlDocument objXMLDoc.Load("C:\Inetpub\wwwroot\XMLSchema_Test\XML\1773777.xml") Dim blnResponse As Boolean Dim objURI As Uri = New Uri("https://172.16.17.2/XMLSchema_Tests1/Web%20Forms/frmXML_Receive.aspx") Dim objWR As HttpWebRequest = HttpWebRequest.Create(objURI) blnResponse = objWR.HaveResponse Dim strXML As String = objXMLDoc.OuterXml objWR.Method = "POST" Dim encoding As New System.Text.ASCIIEncoding Dim …

Member Avatar for samuel_cyk
0
160
Member Avatar for alex-VX

hello I created a simple program that login then the program gets some data from a file. I logged in but then a error message pops out error cant read file cause it is used by another process. The weird thing is that it can be open in the notepad. …

Member Avatar for alex-VX
0
154
Member Avatar for Stubaan

Hi folks I have tried posting this in the python forum without any luck ([url]http://www.daniweb.com/forums/post1120606.html#post1120606[/url]), as well as on the official Intel Fortran forum (because I have also attempted it in Fortran). I am not one inch closer to solving this. All I want is to be able to overwrite, …

Member Avatar for cfajohnson
0
120
Member Avatar for ontherocks

[B]Input file[/B] --> input.txt (contains the lines below) --------------------------------------------- 1. Something something 2. Something something 3. Something something 4. Something something 5. Something something --------------------------------------------- [B]Requirement:[/B] Read the text file line by line and compare a character in the current line with all the lines below it. For example if …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for Mz3g

Hi guys, I'm new to C++ and I'm doing a small project, I got a little problem with reading a specific number from a text file. for example: size 2 3 I want my program to read the 2 to a and the 3 to b. Also I want the …

Member Avatar for Mz3g
0
364
Member Avatar for sid78669

As part of a homework, I created the following Puzzle Class and it works. The thing is, it only work if i put the class in q2.cxx, the main code file. If I place them in three seperate files, I get hell load of problem. Can anyone please look at …

Member Avatar for Ancient Dragon
0
156
Member Avatar for JainishP

I have an assignment where I am supposed to get a user input file with data in it, like below: [QUOTE]Billy Bob 98.6 98.6 98.6 100 200 300 400 500 600 700 800 900 110 220 330 440 550 660 770 880 990 111 222 333 444 555 666 777 …

Member Avatar for verruckt24
0
166
Member Avatar for ppotter3

Hello! I have a question, I have been struggling with this for a bit (I welcome any constructive criticism and pointers) now, and I am pretty new to C++. I am in the process of writing a program that takes names in the format of LAST, FIRST; the it loads …

Member Avatar for ppotter3
0
1K
Member Avatar for ppotter3

Hello! My name is Page, and I am having problems figuring out how to read a name for example like; SMITH, JOHN in a string array. From there I would like to find the space and read the last name into a vector and the first name into another vector. …

Member Avatar for ppotter3
1
7K
Member Avatar for sureronald

Hi to you all. I am working on an application that accepts various source files from the users and stores them on the server with the appropriate extension e.g (.cpp, .py). This has been working fine as php allows a programmer to check the type of the uploaded file type …

Member Avatar for sureronald
0
122
Member Avatar for Jahoobies

Hi everyone, the college I go to blocks file sharing obviously for the reason of file sharing. I have no problem with this except for the fact that you cant play xbox live with other people at the school. Anyone know any way that you can get around this?

Member Avatar for gelgin2k
0
149
Member Avatar for BobbieJean

Hello, I'm new here but I need a little help please. I've gotten this program to mostly work correctly except for what seems like one small detail. My program is supposed to ask the user to enter a file name, open it and display its contents 24 lines at a …

Member Avatar for WaltP
0
665
Member Avatar for Web_Sailor

Hi gurus, I have a simple question regarding file parsing. I am trying to parse a file and store the fields I require in a multimap. Now I want to pass an array which is of int type and specifies field number to be extracted in a file. I am …

0
56
Member Avatar for hermann87

Greetings from Greece, this is my first post! I'm having some minor trouble with an application I've been working on the past week. So if you could please shed some light into this. Thank you. The problem I'm having is that when the user is trying to save a file …

Member Avatar for mitrmkar
1
507
Member Avatar for bharatk

Hello I have a .py file. I am creating a .bat file which when clicked runs the python script & saves the output as a text file in the same directory. I gave this inside the batch file [CODE]%CD%\App1.py > %CD%\op.txt [/CODE] but I am not able to see the …

Member Avatar for bharatk
0
245
Member Avatar for Obi-Won-Knewbie

[LIST] I am new at scripting and need help developing a script that will look at a diff file size I've created from the original file and compare the size to the orignal and send a return code of 1 to the /etc/notify if the file is less than 6-% …

Member Avatar for thekashyap
0
134
Member Avatar for deonis

Hello ! I'm wondering is there simple way in python to check for file modifications by external sources similar to what existing in gedit or drpython (text editors). So far I was able to check for file modification but I don't know how to "call" this function(see code bellow). I …

0
54
Member Avatar for doha786

hi, i have a TextField in myGUI where some data(results) are shown after calculation. I have a 'save' button to save this result into a particular txt file.. i almost done without error....but inside my txt file it shows this kind of things: [QUOTE]ava.awt.datatransfer.StringSelection@157f0dc [/QUOTE] Please anybody help me to …

Member Avatar for BestJewSinceJC
0
200
Member Avatar for d8m9

Hello, Iam beginner in python and my english is not so good. Sorry. I want (must) to write a program witch must read the .txt file and pursuant to the informations in text write another text to another file. :) example: [B]in .txt file:[/B] <HEADLINE text="This is headline 1"> <PARAGRAPH …

Member Avatar for snippsat
0
139
Member Avatar for JPByD

I have a custom login page that in development works fine... but live, it has an error. On the bottom of one of my pages I have an "Admin" link that links to a page in a sub folder called "Secure". The sub folder is secured in web.config. The security …

Member Avatar for JPByD
0
293
Member Avatar for S_I_R

Hi there, I am a newbie in C# (also in coding). now I am trying to extract some specific information from a text file and try to write in .csv format file. I know basic read and write formula. but can't solve this specific problem. Plz, anybody suggest me any …

Member Avatar for S_I_R
0
102
Member Avatar for clisen

Hey everyone, I'm currently writing a simple text based MUD in Java for learning purposes. Currently I'm in the process of coding a Login class that prompts the user to enter a user name and password in order to access the account. Right now the problem lies in opening a …

Member Avatar for clisen
0
146
Member Avatar for me_roy

Hi all, I am stuck here after several hours tried. Here the thing. I have txt file that contain float data (1 column and many row) such like this (4 float data): 0.799 0.851 0.926 1.000 Then i want to read it as array. My code is work until this …

Member Avatar for me_roy
0
316
Member Avatar for richman0829

Restarting C++ class after lengthy break, seems I've forgotten a lot. I can't seem to get a cout to indicate that a file record has been read. I created a text file of just one record to keep it simple: an SS number, first and last names, and five exam …

Member Avatar for richman0829
0
290
Member Avatar for jbrock31

I have been reading books trying to learn .net on my own. I am working on an exercise that asks me to create a 1MB file. what i have below does work, but it seems to me there would be a more efficeient way. It seems like what i am …

Member Avatar for jbrock31
0
313
Member Avatar for gingerx

hi, can somebody please tell me what would be the problem that it couldn't open the file? i compiled it in dev c++ and it gives me no error. the file 512.dat is in the same directory. [CODE]#include<iostream> #include<fstream> #include<stdlib.h> #include<stdio.h> const int sc = 768; int main() { int …

Member Avatar for gingerx
0
1K
Member Avatar for dor.marchan

Hello All, I need some help to convert the macro I recorded in Excel into a working Vb.Net application. It involves attaching a file into a Excel cell. The file is a Word document named "File.doc". Here's the recorded macro: Sub DemoAttachFile() Workbooks("Book1").Activate Sheets("Sheet1").Select Range("B2").Select ActiveSheet.OLEObjects.Add(Filename:= _ "C:\Documents and Settings\File.doc", …

0
75
Member Avatar for deonis

I having a little trouble to figure out how can I replace the specific lines in a text file by the lines from another text file marching certain pattern. !?!? For example: I have two files: file1 and file2 , I want to search lines of the first file for …

Member Avatar for jice
-1
674
Member Avatar for th3kingdom1

I want get data from the car1.txt file and do the probability calculation but all result is 0.0% ?? just want to ask how to get large number of data from txt file by using array method. This is my txt file and cpp file [CODE]1 1 2 2 3 …

Member Avatar for th3kingdom1
0
169
Member Avatar for mpegjohn

Hi, I am running 3 threads that each start an ffmpeg process to extract 3 snapshots form a video file. I need to be able to call this method multiple times, with different video files. It writes the three snapshots to the system. However If I try to delete these …

Member Avatar for mpegjohn
0
339
Member Avatar for c1979h

I am pulling a list of 3 items with a list price from a text file, I ask for the percentage off and calculate it against the list price then I update to file with revised price. The program compiles correctly, but it never displays the info in the console …

Member Avatar for jonsca
0
197
Member Avatar for freeseif

Hi programmers, I want read line by line a Unicode (UTF-8) text file created by Notepad, i don't want display the Unicode string in the screen, i want just read and compare the strings!. This code read ANSI file line by line, and compare the strings [B]What i want[/B] Read …

Member Avatar for Ancient Dragon
2
2K
Member Avatar for jerim

I am working on a class assignment that doesn't meet for a few more days. The assignment is to open a text file, and parse the file one word at a time, reading each word into one of 26 arrays based on the first letter of the word. I can …

Member Avatar for jBat
0
496
Member Avatar for haseeb1431

i have three integers per line in a text file but when i read a file it prints four integers Code: [code] #include<iostream.h> #include<conio.h> #include<fstream.h> void main() { int clas; ifstream inf; inf.open("kash.txt"); do { inf>>clas; cout<<clas; } while(!inf.eof()); } [/code] here is the file kash.txt (no enter after the …

Member Avatar for vmanes
0
153
Member Avatar for theories

Hey everyone! I'm developing a website that interfaces with a database for a college senior project that interfaces with multiple types of smart phones to submit information the phones gather. Part of the requirements is to let the user upload a file. The standard HTML form using method=post for input …

0
86
Member Avatar for malloc84

Hello. I am still a beginner in C# and FileWriting is my new learning step. I created a project. Among other complicated things It needs to do the following: 1. Open EXE file 2. Click a button 3. Write&Save EXE information to a TXT file Explanation: There is a program …

Member Avatar for malloc84
0
110
Member Avatar for nursemo

I'm hoping someone can give me some tips on how to get into my backup file. A few days ago my computer suddenly became overrun with viruses so that it wouldn't even let me start it up. I started it in the safe mode and it gave me the option …

Member Avatar for nursemo
0
179
Member Avatar for rahul8590

I got this silly problem and honestly dunno why it isnt working . The scenario is i got a text file with information and i got to print the ASCII equivalent of the text into the screen . While attempting to do so , i am getting the binary equivalent …

Member Avatar for nezachem
0
200

The End.