How to read and create .LDC data files which are used by
linguatic dictionary.



How to read and create .LDC data files which are used by linguatic dictionary...

Answer / Suman Verma

The .LDC file format is not specific to C programming language, it's a text-based format used for linguistic research. To read and write .LDC files, you can use standard I/O functions in C. Here is an example of writing a simple header and data into an LDC file:```cn#include <stdio.h>nnint main() {n FILE *file = fopen("example.ldc", "w");nn fprintf(file, "#!LDCText -v 1.0

%d text

%d line

text 1
line 1
Hello, World!

text 2
line 1
This is a sample LDC file.
"", 5000, 5);nfclose(file);nreturn 0;n}n``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB Development Interview Questions

Explain about a primary key?

1 Answers  


Can you instantiate a COM object by using T-SQL?

1 Answers  


How to customize error conditions.

1 Answers  


1. Using the XML Document below, with the URI “recipe.xml” define the following queries in XQuery: a.) Give the names of all breakfast in the menu. b.) Select breakfasts that have price lower than $7.00? <?xml version="1.0"?> <breakfast_menu> <food> <name>Belgian Waffles</name> <price>$5.95</price> <description> two of our famous Belgian Waffles with plenty of real maple syrup </description> <calories>650</calories> </food> <food> <name>Strawberry Belgian Waffles</name> <price>$7.95</price> <description> light Belgian waffles covered with strawberries and whipped cream </description> <calories>900</calories> </food> <food> <name>Berry-Berry Belgian Waffles</name> <price>$8.95</price> <description> light Belgian waffles covered with an assortment of fresh berries and whipped cream </description> <calories>900</calories> </food> <food> <name>French Toast</name> <price>$4.50</price> <description> thick slices made from our homemade sourdough bread </description> <calories>600</calories> </food> <food> <name>Homestyle Breakfast</name> <price>$6.95</price> <description> two eggs, bacon or sausage, toast, and our ever-popular hash browns </description> <calories>950</calories> </food> </breakfast_menu>

1 Answers  


What are the constraints on severity level in raiseerror?

1 Answers  


Explain about xml databases?

1 Answers  


How to read and create .LDC data files which are used by linguatic dictionary.

1 Answers  


How to combine two function together?

1 Answers  


What is database design and development?

1 Answers  


In which database can extended stored procedures be added?

1 Answers  


can you give me the syntax of named procedure??

2 Answers  


How would you design a database for an online site, which would average a million hits a day?

1 Answers  


Categories