25 Topics

Member Avatar for
Member Avatar for Aamit

How to read clean data from .docx or .doc file? $file_url="http://www.abc.com/upload/test.docx"; $doc_data = file_get_contents($file_url); it's gives out put like  �T�a�b�l�e� �N�o�r�m�a�l����ö��4Ö� l�4Ö���aö��� ���(�k ôÿÁ�(�� ������0�N�o� �L�i�s�t���� �����PK�����!�‚Š¼ú��������[Content_Types].xml how to get clean data like text file??

Member Avatar for Muzammil_2
0
7K
Member Avatar for iwanttolearnc

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.

Member Avatar for pintukennady31
0
121
Member Avatar for Jsplinter

So, I've gotten myself in a bit of a pickle. I have been serializing data I collect with: vector<myClass> mVec; ... // mVec is filled with the data to collect for (auto it = mVec.begin(); it != mVec.end(); ++it) { myfile.write(reinterpret_cast<char*>(&(*it)), sizeof(*it)); } I've wrapped this code in a templated …

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

Hi Everyone, I haven't started coding or anything but I need to know if it's possible to read a file from last read position? I want to read a file and dump the content into a MySQL database but don't want to read the entire file from start to end …

Member Avatar for LRNPHP
0
219
Member Avatar for Bendez Thyna

hi guzs im trying to read a file and open it when click on the button when i run.I don't know why the file didn't show up on my screen.here the code Public Partial Class MainForm 'structure of products Structure products Public nameproduct As String Public catalogcode As String Public …

Member Avatar for Bendez Thyna
0
301
Member Avatar for ErlendHL

Hi! I have now learned how to write to and read from .txt files on my server via [B]php[/B], but is it possible to do this with [B]JavaScript[/B]? :icon_question: Like that JavaScript writes to the .txt file every second without needing the user to refresh the page to write or …

Member Avatar for Donald_2
0
20K
Member Avatar for Cameronsmith63

Hi, for some reason I can read this file perfectly on my machine (.net framework 4.5 is installed) But when I run it on one of the servers (.net framework 4.0 is installed), i can't get the file to even open. try { // Connect to the file with the …

Member Avatar for cgeier
0
473
Member Avatar for aseeman

I want to write a program that do this: It should receive the URL (Wikipedia 's URL) from input and download that web page And read the content of that page and save it into a file please help me Thanks

Member Avatar for aseeman
0
290
Member Avatar for johndohmen1963

Who can help me with the folowing I have javascrip variable and a php datatable And i wand to read the datatable with the javascript variable here is the code i have if(!isset($_POST['bewerk_gegevens'])) { ?> <script language="javascript" type="text/javascript"> var newland = document.getElementById("geboorte_land").value; if ((newland != "" && newland != "Duitsland") …

Member Avatar for johndohmen1963
0
386
Member Avatar for hades2610

I want to devide the text in file data.txt into an array of char*( mean i use the pointer char** q) by the way line 1 for q[1], line 2 for q[2] and.... but i don't know why it not work can everyone help me ??? :( char **q; const …

Member Avatar for Ancient Dragon
0
301
Member Avatar for COKEDUDE

I know this is how you read from a file. I also want to print my output to the same name of the file plus ".txt". So if my file is called "text" I want to print it to a file called "text.txt". #include <stdio.h> #include <stdlib.h> #include <stdbool.h> int …

Member Avatar for Ancient Dragon
0
333
Member Avatar for Danuja

Can any guy tell me what is the differnce between a datareader and a dataadapter? Also what are the other method to search data through SQL queries??

Member Avatar for Sulaiman_1
0
366
Member Avatar for endri_1

Hi eveyone. I am trying to read a file using vi editor and sort its content inside the file alphabetically which is only names on CAPITAL LETTERS, second field (JOHN, MIKE, JAYSON and TYLER). The file is smth like this inside: 1:JOHN:Morgan:90:24 2:MIKE:Smith:95:11 3:JAYSON:Ty:99:9 4:TYLER:Edward:89:5 This is my vi script: …

Member Avatar for endri_1
0
531
Member Avatar for priyanka raj

Would you please help me in writing a c code to read data from a file and perform 1)numeric sort, 2)alphabetical sort. the file may contain data of any kind.Like it may contain only numbers,only names or a database of employees of a company.(which contains their employee id,name,designation and salary,....in …

Member Avatar for aaaymen
1
7K
Member Avatar for Mr.M

Hi Dw I want to read a text file line by line and refer to those lines, meaning the text file will have 1 word per line and these words are the names which will be used by a scanner to check if there are any files named as these …

Member Avatar for Reverend Jim
0
197
Member Avatar for Bitgod

I'm trying to parse this csv-like file, and I seem to be failing at it. Below is the contents of said file, and below that is the record format. Can someone give me a clue? Thank you. Source Code [Click Here](http://pastebin.com/xNFn1p7C) CSV File [Click Here](http://pastebin.com/L7w25eLh) Record Format [Click Here](http://pastebin.com/Rhb0UEdP)

Member Avatar for Momerath
0
214
Member Avatar for |-|x

Hi guys, Working on one of my web projects recently I came accross a need for presenting some readonly data as part of the user input form. The readonly property of the input tags seem to work as expected for other types of input control, but not for the checkbox. …

Member Avatar for rohitdubey
0
5K
Member Avatar for sopheark.boun

I can't un check attribute read only folder Windows 7. I used this command " c:\>attrib -r -s d:\\myfile ", but It didn't work. Have anyone help me?

Member Avatar for john.chandler.92
0
258
Member Avatar for phfilly

Hi! I would just like to know is there a way you can overwrite the main.c file in the kernel folder(dir /usr/src/kernel/main.c) in MINIX 3. I want to change some code in the file(I know the risks involved) but the problem is I can't save it. I've tried logging in …

Member Avatar for phfilly
0
228
Member Avatar for 2teez

One of the finest initiative was the full documentation bundled with every version of Perl Programming language. Using the plain old documentation (*pod*) utility called *perldoc* one can literally read or learn the programming language without another book. E.g perldoc perl gives you the Name of the perl language Interpreter, …

0
142
Member Avatar for manzoor.ilahi77

I need not to focus on readonly input and when user tab it should jump to next write field. <input type="text" name="first"></input> <input type="text" name="second" readonly="readonly"></input> <input type="text" name="third"></input> <input type="text" name="fourth"></input> <input type="text" name="fifth" readonly="readonly"></input> <input type="text" name="sixth"></input> <script> $(document).ready( function(){ $('input').focus(function(e) { var readonly = $(this).attr("readonly"); if (readonly) …

Member Avatar for stbuchok
0
1K
Member Avatar for iamthesgt

In setting up an embedded system, a Linux box needed to have a read-only root partition. However, the OS must be able to write to certain files (the drive was partitioned into /, /home, /tmp, /usr, /var with the only read-only being / ). So I created symbolic links to …

Member Avatar for iamthesgt
0
232
Member Avatar for SoftwareGuy

Hello, I'm using .NET C# there. I have a textbox. I assigned it a MouseClick event. Normally the event is fired when I click the control. But if I set the textbox's [[B]Enabled=false[/B]] or [[B]ReadOnly=true[/B]] properties, the MouseClick event is not fired. How can I fix it? Thanks.

Member Avatar for hericles
0
2K
Member Avatar for rizana

I have a jsp form with 3 buttons (New/View/Edit). On clicking New..it should open another jsp form with some input field. On clicking View..it should open the same jsp form with input field as readonly on clicking edit..it should open the same jsp form with input field pre-populated.. can i …

Member Avatar for masijade
0
111
Member Avatar for WolfShield

Hey guys, I am making a calculator program and don't want the user to type directly into the Entry, so I made the Entry 'readonly'. But that makes it to dark for my liking, so I am trying to set the readonlybackground='white', but it gives me an error saying that …

Member Avatar for WolfShield
0
382

The End.